mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:19:24 +02:00
* fpc_pchar_length: fixed exit without restoring EDI register if argument is nil, bug #21135.
git-svn-id: trunk@20156 -
This commit is contained in:
parent
c729bd7a3f
commit
b9b960ebcf
@ -936,12 +936,12 @@ asm
|
||||
pop %edx
|
||||
pop %eax
|
||||
{$endif FPC_PROFILE}
|
||||
test %eax,%eax
|
||||
jz .LStrLenDone
|
||||
movl %edi,saveedi
|
||||
movl %eax,%edi
|
||||
movl $0xffffffff,%ecx
|
||||
xorl %eax,%eax
|
||||
test %edi,%edi
|
||||
jz .LStrLenDone
|
||||
cld
|
||||
repne
|
||||
scasb
|
||||
|
Loading…
Reference in New Issue
Block a user