]> git.draconx.ca Git - liblbx.git/commit
Use (size_t)-1 instead of SIZE_MAX.
authorNick Bowler <nbowler@draconx.ca>
Tue, 21 Sep 2021 04:53:26 +0000 (00:53 -0400)
committerNick Bowler <nbowler@draconx.ca>
Tue, 21 Sep 2021 04:53:26 +0000 (00:53 -0400)
commitc123302699919b0f34de9bc5d9019c2c1f14b7a1
tree46a982e35a96f74e40022a644ed6bb840da23cc5
parent1c79f726622c4a90e9ed4882246c0c320a8e6fdc
Use (size_t)-1 instead of SIZE_MAX.

We do not require the special characteristics of SIZE_MAX (that it be
suitable for use in #if directives), and older library implementations
do not define it.  Outside of the preprocessor, (size_t)-1 is exactly
equivalent so let's just use that instead.
src/error.c
src/lbximg.c
src/pnm.c
src/tools.c