* fixed (harmless) range error

git-svn-id: trunk@7511 -
This commit is contained in:
Jonas Maebe 2007-05-29 13:04:15 +00:00
parent 60d424e97d
commit 628ddfa160

View File

@ -525,7 +525,8 @@ implementation
{ not plongint, because that will "sign extend" the set on 64 bit platforms }
{ if changed to "paword", please also modify "32-resultdef.size*8" and }
{ cross-endian code below }
location.value:=pCardinal(value_set)^
{ Extra aint type cast to avoid range errors }
location.value:=aint(pCardinal(value_set)^)
{$else}
location.value:=reverse_byte(Psetbytes(value_set)^[0]);
location.value:=location.value or (reverse_byte(Psetbytes(value_set)^[1]) shl 8);