aboutsummaryrefslogtreecommitdiffhomepage
path: root/c.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-08 23:05:15 +0200
committerlemon <lsof@mailbox.org>2025-10-08 23:05:15 +0200
commit68ecc26d0257e2b2df39eeedf637e6ac6f8ab232 (patch)
tree3350e505d843193619caca36750a3ddc3515c8c1 /c.c
parent6436f4c576b65dd8220db7dcd0e7a21f33ac4933 (diff)
bit math goof
Diffstat (limited to 'c.c')
-rw-r--r--c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c.c b/c.c
index e90e368..61a5df9 100644
--- a/c.c
+++ b/c.c
@@ -1690,7 +1690,7 @@ static inline void
inttyminmax(vlong *min, uvlong *max, enum typetag tt)
{
uint bits = 8*targ_primsizes[tt];
- *min = isunsignedt(tt) ? 0 : bits == 64 ? ~0ull : -(1ll << (bits - 1));
+ *min = isunsignedt(tt) ? 0 : -(1ull << (bits - 1));
*max = isunsignedt(tt) ? ~0ull >> (64 - bits) : bits == 64 ? ~0ull>>1 : (1ll << (bits - 1)) - 1;
}