Update pre-commit hooks (#12475)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -121,8 +121,8 @@ class ScalarType:
|
||||
min_raw = max_raw | sign_bit_double
|
||||
return struct.unpack('!d', struct.pack('!Q', min_raw))[0]
|
||||
else:
|
||||
assert (not self.is_signed() or
|
||||
self.size_bits <= 64), "Cannot represent min as a int64_t"
|
||||
assert (not self.is_signed() or self.size_bits
|
||||
<= 64), "Cannot represent min as a int64_t"
|
||||
|
||||
if self.is_signed():
|
||||
return -(1 << (self.size_bits - 1))
|
||||
|
||||
Reference in New Issue
Block a user