* fixed some type casts

git-svn-id: trunk@8817 -
This commit is contained in:
Jonas Maebe 2007-10-15 13:58:45 +00:00
parent 6121df1f67
commit 4486a2cecb

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,longint(b),cardinal(len));
res := memchr(buf,cint(b),size_t(len));
if (res <> nil) then
IndexByte := SizeInt(res-@buf)
else