Re: [PATCH] Add cast to unsigned char to strverscmp
Hans-Bernhard Bröker <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Am 08.11.2024 um 18:36 schrieb Christian Franke:
> This variant does not depend on signedness or integer overflow:
>
> if ('1' <= l[dp] && l[dp] <= '9' && '1' <= r[dp] && r[dp] <= '9') {
Or one could actually use isdigit() for what it's intended to do? Yeah
right, that would be just too ridiculous to even consider...