forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit074985b
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 parent1e6c362 commit074985b
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
| |||
| 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)