[PATCH] Add cast to unsigned char to strverscmp

Hans-Bernhard Bröker HBBroeker@t-online.de
Fri Nov 8 18:39:35 GMT 2024


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...



More information about the Newlib mailing list