]> Savannah Git Hosting - gnulib.git/commit
reallocarray-tests: port to weird platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 May 2021 17:04:06 +0000 (10:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 May 2021 17:04:47 +0000 (10:04 -0700)
commitc45faf7f48bcbe57df3bbf8df81a016c5f15df55
tree0aadffebe9841b0519a4642330a209d9784104e3
parent2e1b7bf95c689b8532d5a87e91c94d11959e57aa
reallocarray-tests: port to weird platforms

* tests/test-reallocarray.c (main): Don’t assume that
PTRDIFF_MAX / 2 + 1 <= SIZE_MAX.  POSIX allows platforms
where this isn’t true, though I don’t know of any examples.
ChangeLog
tests/test-reallocarray.c