diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-09-19 17:42:04 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-09-19 17:42:04 +0000 |
commit | daea57b04b1b38a65408e61310cd35aaee749534 (patch) | |
tree | af5a501f0631b740ba3ff06e8ead5c731dc70e95 /rtl/arm | |
parent | cb565b8c1ed46d202ade3982ebfb6d5c97515ce2 (diff) | |
download | fpc-daea57b04b1b38a65408e61310cd35aaee749534.tar.gz |
* readd SmallInt typecasts to SmallInt overload of SwapEndian
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@46898 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/arm')
-rw-r--r-- | rtl/arm/arm.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtl/arm/arm.inc b/rtl/arm/arm.inc index b5793f5f0c..29b5a5c1dd 100644 --- a/rtl/arm/arm.inc +++ b/rtl/arm/arm.inc @@ -1190,7 +1190,7 @@ function SwapEndian(const AValue: SmallInt): SmallInt;{$ifdef SYSTEMINLINE}inlin { is turned into "longint(AValue) shr 8", so if AValue < 0 then } { the sign bits from the upper 16 bits are shifted in rather than } { zeroes. } - Result := ((Word(AValue) shr 8) or (Word(AValue) shl 8)) and $ffff; + Result := SmallInt(((Word(AValue) shr 8) or (Word(AValue) shl 8)) and $ffff); end; |