summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/sys/segments.h
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-05-15 09:14:12 +0100
committerRichard Lowe <richlowe@richlowe.net>2011-07-02 22:15:23 -0400
commit3b1f624e230770ab38abe6dd3449c22024bdf5d9 (patch)
tree1ea1e99f1236191f6e0380c825593975b1101660 /usr/src/uts/intel/sys/segments.h
parentba3be10ff849fd8e50e953e39d7e7e8496396dce (diff)
downloadillumos-joyent-3b1f624e230770ab38abe6dd3449c22024bdf5d9.tar.gz
sys/segments.h: Cast up to a uint64_t to avoid left shift > type width
GCC 4.4 would warn that we were left shifting by 32 leaving a result greater than the width of the type (presumed to be implicit int). Cast up to a uint64_t so we have room.
Diffstat (limited to 'usr/src/uts/intel/sys/segments.h')
-rw-r--r--usr/src/uts/intel/sys/segments.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/intel/sys/segments.h b/usr/src/uts/intel/sys/segments.h
index 408cc29867..6031bdd59f 100644
--- a/usr/src/uts/intel/sys/segments.h
+++ b/usr/src/uts/intel/sys/segments.h
@@ -379,7 +379,7 @@ typedef struct gate_desc {
#define GATESEG_GETOFFSET(sgd) ((sgd)->sgd_looffset | \
(sgd)->sgd_hioffset << 16 | \
- (sgd)->sgd_hi64offset << 32)
+ (uint64_t)(sgd)->sgd_hi64offset << 32)
#endif /* __amd64 */