* i386 version of fpc_pchar_length did not accept NIL strings, maybe we have to check other implementations also

git-svn-id: trunk@12461 -
This commit is contained in:
ivost 2009-01-01 21:18:49 +00:00
parent 660a7c4b6d
commit fe3263eb08

View File

@ -1037,12 +1037,15 @@ asm
{$endif}
movl $0xffffffff,%ecx
xorl %eax,%eax
cmp %edi,%edi
jz .LStrLenDone
cld
repne
scasb
movl $0xfffffffe,%eax
subl %ecx,%eax
movl saveedi,%edi
.LStrLenDone:
end;
{$endif FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}