diff --git a/src/Cryptol/TypeCheck/Solver/Numeric/Interval.hs b/src/Cryptol/TypeCheck/Solver/Numeric/Interval.hs index 192957f5..b1bc4ee6 100644 --- a/src/Cryptol/TypeCheck/Solver/Numeric/Interval.hs +++ b/src/Cryptol/TypeCheck/Solver/Numeric/Interval.hs @@ -130,7 +130,7 @@ propInterval varInts prop = catMaybes -- record the exact upper bound when it produces values within 128 -- bits ub = case iUpper int of - Just (Nat val) | val < 128 -> Just (Nat (2 ^ val)) + Just (Nat val) | val < 128 -> Just (Nat (2 ^ val - 1)) | otherwise -> Nothing _ -> iUpper int