AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

Use *_MAX to remove need for configure-time type size checks #84

Closed michaelforney closed 3 years ago

michaelforney commented 3 years ago

I noticed that the configure sizeof checks aren't necessary, since you can just use the *_MAX macros from limits.h. It seems a bit cleaner and reduces the number of configure checks, so I thought I'd send a PR.

AgentD commented 3 years ago

Funny, my copy of the limits.h man page doesn't mention SIZE_MAX, but I managed to dig it up in a C99 draft.

Thanks