* one more typecast fix

git-svn-id: trunk@8818 -
This commit is contained in:
Jonas Maebe 2007-10-15 14:02:30 +00:00
parent 4486a2cecb
commit eb6c8fa570

View File

@ -60,7 +60,7 @@ begin
{ simulate assembler implementations behaviour, which is expected }
{ fpc_pchar_to_ansistr in astrings.inc (interpret values < 0 as }
{ unsigned) }
res := memchr(buf,cint(b),size_t(len));
res := memchr(buf,cint(b),size_t(sizeuint(len)));
if (res <> nil) then
IndexByte := SizeInt(res-@buf)
else