Skip to content
Snippets Groups Projects
Select Git revision
  • bbbbc263173cd22873f9a36d4786e8dd7f97f724
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

mpz.c

Blame
  • user avatar
    Jeff Epler authored and Damien George committed
    Before this, ubsan would detect a problem when executing
    hash(006699999999999999999999999999999999999999999999999999999999999999999999)
    
        ../../py/mpz.c:1539:20: runtime error: left shift of 1067371580458 by
        32 places cannot be represented in type 'mp_int_t' (aka 'long')
    
    When the overflow does occur it now happens as defined by the rules of
    unsigned arithmetic.
    c4dafcef
    History
    mpz.c 47.53 KiB