forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1c21f12
committed
Fix compiler warning induced by commitd8b15ee.
I forgot that INT64_FORMAT can't be used with sscanf on Windows.Use the same trick of sscanf'ing into a temp variable as we do insome other places in zic.c.The upstream IANA code avoids the portability problem by relying on<inttypes.h>'s SCNdFAST64 macro. Once we're requiring C99 in allbranches, we should do likewise and drop this set of diffs fromupstream. For now, though, a hack seems fine, since we do notactually care about leapseconds anyway.Discussion:https://postgr.es/m/4e5d1a5b-143e-e70e-a99d-a3b01c1ae7c3@2ndquadrant.com1 parent6d9f7a0 commit1c21f12
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | | - | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1296 | 1309 | | |
1297 | 1310 | | |
1298 | 1311 | | |
| |||
0 commit comments
Comments
(0)