forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc202ecf
committed
Another zic portability fix.
I should have remembered that we can't use INT64_MODIFIER with sscanf():configure chooses that to work with snprintf(), but it might be for oursrc/port/snprintf.c implementation and so not compatible with theplatform's sscanf(). This appears to be the explanation for buildfarmmember frogmouth's continuing unhappiness with the tzcode update.Fortunately, in all of the places where zic is attempting to read intoan int64 variable, it's reading a year which certainly will fit just fineinto an int. So make it read into an int with %d, and then cast or copyas necessary.1 parent61608d3 commitc202ecf
1 file changed
+20
-11
lines changedLines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 | 26 |
| |
28 | 27 |
| |
29 | 28 |
| |
| |||
1145 | 1144 |
| |
1146 | 1145 |
| |
1147 | 1146 |
| |
1148 |
| - | |
| 1147 | + | |
| 1148 | + | |
1149 | 1149 |
| |
1150 | 1150 |
| |
1151 | 1151 |
| |
| |||
1162 | 1162 |
| |
1163 | 1163 |
| |
1164 | 1164 |
| |
1165 |
| - | |
| 1165 | + | |
1166 | 1166 |
| |
1167 |
| - | |
| 1167 | + | |
1168 | 1168 |
| |
1169 |
| - | |
| 1169 | + | |
1170 | 1170 |
| |
1171 | 1171 |
| |
1172 | 1172 |
| |
| |||
1179 | 1179 |
| |
1180 | 1180 |
| |
1181 | 1181 |
| |
1182 |
| - | |
| 1182 | + | |
1183 | 1183 |
| |
1184 | 1184 |
| |
1185 | 1185 |
| |
1186 | 1186 |
| |
1187 | 1187 |
| |
1188 | 1188 |
| |
1189 | 1189 |
| |
1190 |
| - | |
| 1190 | + | |
1191 | 1191 |
| |
1192 | 1192 |
| |
1193 | 1193 |
| |
| |||
1374 | 1374 |
| |
1375 | 1375 |
| |
1376 | 1376 |
| |
1377 |
| - | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1378 | 1380 |
| |
1379 | 1381 |
| |
1380 | 1382 |
| |
| |||
1389 | 1391 |
| |
1390 | 1392 |
| |
1391 | 1393 |
| |
1392 |
| - | |
| 1394 | + | |
1393 | 1395 |
| |
1394 | 1396 |
| |
1395 | 1397 |
| |
| |||
1531 | 1533 |
| |
1532 | 1534 |
| |
1533 | 1535 |
| |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1534 | 1539 |
| |
1535 | 1540 |
| |
1536 | 1541 |
| |
| |||
1588 | 1593 |
| |
1589 | 1594 |
| |
1590 | 1595 |
| |
1591 |
| - | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1592 | 1599 |
| |
1593 | 1600 |
| |
1594 | 1601 |
| |
| |||
1614 | 1621 |
| |
1615 | 1622 |
| |
1616 | 1623 |
| |
1617 |
| - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1618 | 1627 |
| |
1619 | 1628 |
| |
1620 | 1629 |
| |
|
0 commit comments
Comments
(0)