Repository navigation
Commit 7cff6d1
committed
Fix #726 (#if: ?: treats a zero condition as true unless it is written exactly as 0)
?: and ! compared the operand with the string "0", so zero values such as
00, -0 and 0L were taken as true. Compare the numeric value instead.1 parent 45de9af commit 7cff6d1
2 files changed
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | | - | |
| 1308 | + | |
1309 | 1309 | | |
1310 | 1310 | | |
1311 | 1311 | | |
| |||
1571 | 1571 | | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | | - | |
| 1574 | + | |
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2887 | 2887 | | |
2888 | 2888 | | |
2889 | 2889 | | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
2890 | 2916 | | |
2891 | 2917 | | |
2892 | 2918 | | |
| |||
5123 | 5149 | | |
5124 | 5150 | | |
5125 | 5151 | | |
| 5152 | + | |
5126 | 5153 | | |
5127 | 5154 | | |
5128 | 5155 | | |
| |||
0 commit comments