diff options
| author | 2025-10-08 23:05:15 +0200 | |
|---|---|---|
| committer | 2025-10-08 23:05:15 +0200 | |
| commit | 68ecc26d0257e2b2df39eeedf637e6ac6f8ab232 (patch) | |
| tree | 3350e505d843193619caca36750a3ddc3515c8c1 | |
| parent | 6436f4c576b65dd8220db7dcd0e7a21f33ac4933 (diff) | |
bit math goof
| -rw-r--r-- | c.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |