- Notifications
You must be signed in to change notification settings - Fork5
Commitc90b85e
committed
Second try at fixing warnings caused by commit9b43d73.
Commitef3f9e6 suppressed one cause of warnings here, butrecent clang on OS X is still unhappy because we're passing a "long"to abs(). The fact that tm_gmtoff is declared as long is no doubt ahangover from days when int might be only 16 bits; but Postgres hasnever been able to run on such machines, so we can just cast it to intwith no worries. For consistency, also cast to int in the otheruses of tm_gmtoff in this stanza.Note: this code is still broken on machines that don't follow C99integer-division-truncates-towards-zero rules. Given the lack ofcomplaints about it, I don't feel a large desire to complicate thingsenough to cope with the pre-C99 rules.1 parenta482043 commitc90b85e
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2503 | 2503 |
| |
2504 | 2504 |
| |
2505 | 2505 |
| |
2506 |
| - | |
| 2506 | + | |
2507 | 2507 |
| |
2508 |
| - | |
| 2508 | + | |
2509 | 2509 |
| |
2510 |
| - | |
| 2510 | + | |
2511 | 2511 |
| |
2512 | 2512 |
| |
2513 | 2513 |
| |
|
0 commit comments
Comments
(0)