• Heikki Linnakangas's avatar
    Fix yet more portability bugs in integerset and its tests. · b5fd4972
    Heikki Linnakangas authored
    There were more large constants that needed UINT64CONST. And one variable
    was declared as "int", when it needed to be uint64. These bugs were only
    visible on 32-bit systems; clearly I should've tested on one, given that
    this code does a lot of work with 64-bit integers.
    
    Also, in the test "huge distances" test, the code created some values with
    random distances between them, but the test logic didn't take into account
    the possibility that the random distance was exactly 1. That never actually
    happens with the seed we're using, but let's be tidy.
    b5fd4972
test_integerset.c 17 KB