summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bits.c b/bits.c
index 69b6c4af..96f051d4 100644
--- a/bits.c
+++ b/bits.c
@@ -73,7 +73,7 @@ int64_t sbits(char buf[], unsigned int start, unsigned int width)
(void)fprintf(stderr, "sbits(%d, %d) extracts %llx\n", start, width, fld);
#endif /* __UNUSED_DEBUG__ */
/*@ +relaxtypes */
- if (fld & (1 << (width - 1))) {
+ if (fld & (1LL << (width - 1))) {
#ifdef __UNUSED_DEBUG__
(void)fprintf(stderr, "%llx is signed\n", fld);
#endif /* __UNUSED_DEBUG__ */