forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb5fd497
committed
Fix yet more portability bugs in integerset and its tests.
There were more large constants that needed UINT64CONST. And one variablewas declared as "int", when it needed to be uint64. These bugs were onlyvisible on 32-bit systems; clearly I should've tested on one, given thatthis code does a lot of work with 64-bit integers.Also, in the test "huge distances" test, the code created some values withrandom distances between them, but the test logic didn't take into accountthe possibility that the random distance was exactly 1. That never actuallyhappens with the seed we're using, but let's be tidy.1 parent638db07 commitb5fd497
File tree
2 files changed
+11
-8
lines changed- src
- backend/lib
- test/modules/test_integerset
2 files changed
+11
-8
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
845 | 845 |
| |
846 | 846 |
| |
847 | 847 |
| |
848 |
| - | |
| 848 | + | |
849 | 849 |
| |
850 | 850 |
| |
851 | 851 |
| |
| |||
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
888 |
| - | |
| 888 | + | |
889 | 889 |
| |
890 | 890 |
| |
891 | 891 |
| |
| |||
948 | 948 |
| |
949 | 949 |
| |
950 | 950 |
| |
951 |
| - | |
| 951 | + | |
952 | 952 |
| |
953 | 953 |
| |
954 | 954 |
| |
| |||
961 | 961 |
| |
962 | 962 |
| |
963 | 963 |
| |
964 |
| - | |
| 964 | + | |
965 | 965 |
| |
966 | 966 |
| |
967 | 967 |
| |
| |||
992 | 992 |
| |
993 | 993 |
| |
994 | 994 |
| |
995 |
| - | |
| 995 | + | |
996 | 996 |
| |
997 | 997 |
| |
998 | 998 |
| |
| |||
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 | 1003 |
| |
1004 |
| - | |
| 1004 | + | |
1005 | 1005 |
| |
1006 | 1006 |
| |
1007 | 1007 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
590 | 590 |
| |
591 | 591 |
| |
592 | 592 |
| |
| 593 | + | |
593 | 594 |
| |
594 | 595 |
| |
595 | 596 |
| |
596 | 597 |
| |
| 598 | + | |
597 | 599 |
| |
598 |
| - | |
| 600 | + | |
599 | 601 |
| |
600 | 602 |
| |
601 | 603 |
| |
602 | 604 |
| |
603 | 605 |
| |
604 | 606 |
| |
605 | 607 |
| |
| 608 | + | |
606 | 609 |
| |
607 |
| - | |
| 610 | + | |
608 | 611 |
| |
609 | 612 |
| |
610 | 613 |
| |
|
0 commit comments
Comments
(0)