diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2015-08-08 22:44:37 +0200 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2015-08-08 22:44:37 +0200 |
commit | 8fe3f3d6afbf084f9ef36d887b661792c769f862 (patch) | |
tree | 56557165bcdb2f48b93b35a1af83c3275271a779 /gas/config | |
parent | e44bf850dff24e0442408e26043d957588be88ee (diff) | |
download | gdb-8fe3f3d6afbf084f9ef36d887b661792c769f862.zip gdb-8fe3f3d6afbf084f9ef36d887b661792c769f862.tar.gz gdb-8fe3f3d6afbf084f9ef36d887b661792c769f862.tar.bz2 |
tc-arm.c: Append ULL to 0xFFFFFFFFFFFFF to avoid errors on 32-bit hosts.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-arm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 7b3b5c9..899bfa2 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -7760,7 +7760,7 @@ static bfd_boolean is_double_a_single (bfd_int64_t v) { int exp = (int)((v >> 52) & 0x7FF); - bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFF); + bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFFULL); return (exp == 0 || exp == 0x7FF || (exp >= 1023 - 126 && exp <= 1023 + 127)) @@ -7775,7 +7775,7 @@ double_to_single (bfd_int64_t v) { int sign = (int) ((v >> 63) & 1l); int exp = (int) ((v >> 52) & 0x7FF); - bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFF); + bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFFULL); if (exp == 0x7FF) exp = 0xFF; |