forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcbb51eb
committed
Ensure SIZE_MAX can be used throughout our code.
Pre-C99 platforms may lack <stdint.h> and thereby SIZE_MAX. We havea couple of places using the hack "(size_t) -1" as a fallback, butit wasn't universally available; which means the code added in commit2e70d6b fails to compile everywhere. Move that hack to c.h so thatwe can rely on having SIZE_MAX everywhere.Per discussion, it'd be a good idea to make the macro's value safefor use in #if-tests, but that will take a bit more work. This isjust a quick expedient to get the buildfarm green again.Back-patch to all supported branches, like the previous commit.Discussion:https://postgr.es/m/15883.1504278595@sss.pgh.pa.us1 parentef585de commitcbb51eb
3 files changed
+6
-5
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
346 | 351 |
| |
347 | 352 |
| |
348 | 353 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 | 51 |
| |
56 | 52 |
| |
57 | 53 |
| |
|
0 commit comments
Comments
(0)