mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
When computing e.g. hash(0.4e3) with ubsan enabled, a diagnostic like the
following would occur:
../../py/objfloat.c:91:30: runtime error: shift exponent 44 is too
large for 32-bit type 'int'
By casting constant "1" to the right type the intended value is preserved.
11 KiB
11 KiB