- Notifications
You must be signed in to change notification settings - Fork5
Commit8acfc75
committed
Tweak the overflow checks in integer division functions to complain if the
machine produces zero (rather than the more usual minimum-possible-integer)for the only possible overflow case. This has been seen to occur for at leastsome word widths on some hardware, and it's cheap enough to check foreverywhere. Per Peter's analysis of buildfarm reports.This could be back-patched, but in the absence of any gripes from the fieldI doubt it's worth the trouble.1 parent1e4b038 commit8acfc75
2 files changed
+20
-14
lines changedLines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
735 | 735 |
| |
736 | 736 |
| |
737 | 737 |
| |
738 |
| - | |
| 738 | + | |
| 739 | + | |
739 | 740 |
| |
740 |
| - | |
| 741 | + | |
741 | 742 |
| |
742 | 743 |
| |
743 | 744 |
| |
| |||
863 | 864 |
| |
864 | 865 |
| |
865 | 866 |
| |
866 |
| - | |
| 867 | + | |
| 868 | + | |
867 | 869 |
| |
868 |
| - | |
| 870 | + | |
869 | 871 |
| |
870 | 872 |
| |
871 | 873 |
| |
| |||
1041 | 1043 |
| |
1042 | 1044 |
| |
1043 | 1045 |
| |
1044 |
| - | |
| 1046 | + | |
| 1047 | + | |
1045 | 1048 |
| |
1046 |
| - | |
| 1049 | + | |
1047 | 1050 |
| |
1048 | 1051 |
| |
1049 | 1052 |
| |
|
Lines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
611 |
| - | |
| 611 | + | |
| 612 | + | |
612 | 613 |
| |
613 |
| - | |
| 614 | + | |
614 | 615 |
| |
615 | 616 |
| |
616 | 617 |
| |
| |||
830 | 831 |
| |
831 | 832 |
| |
832 | 833 |
| |
833 |
| - | |
| 834 | + | |
| 835 | + | |
834 | 836 |
| |
835 |
| - | |
| 837 | + | |
836 | 838 |
| |
837 | 839 |
| |
838 | 840 |
| |
| |||
1008 | 1010 |
| |
1009 | 1011 |
| |
1010 | 1012 |
| |
1011 |
| - | |
| 1013 | + | |
| 1014 | + | |
1012 | 1015 |
| |
1013 |
| - | |
| 1016 | + | |
1014 | 1017 |
| |
1015 | 1018 |
| |
1016 | 1019 |
| |
|
0 commit comments
Comments
(0)