commit | 578645f14e122d2b87d907e298cda7e7d0babf1f | [log] [tgz] |
---|---|---|
author | armvixl <vixl@arm.com> | Thu Aug 15 17:21:42 2013 +0100 |
committer | armvixl <vixl@arm.com> | Thu Aug 15 17:21:42 2013 +0100 |
tree | c34bbb80333c91cc6f05e3f615dae45fcfe42a20 | |
parent | ad96eda8944ab1c1ba55715c50d9d6f0a3ed1dc8 [diff] [blame] |
VIXL Release 1.1 Refer to the README.md and LICENCE files for details.
diff --git a/src/utils.h b/src/utils.h index 400e6aa..4e0b367 100644 --- a/src/utils.h +++ b/src/utils.h
@@ -79,7 +79,7 @@ } inline uint64_t unsigned_bitextract_64(int msb, int lsb, uint64_t x) { - return (x >> lsb) & ((1 << (1 + msb - lsb)) - 1); + return (x >> lsb) & ((static_cast<uint64_t>(1) << (1 + msb - lsb)) - 1); } inline int32_t signed_bitextract_32(int msb, int lsb, int32_t x) {