On 18/04/2019 20.13, Markus Armbruster wrote:
> Thomas Huth writes:
>
>> On 18/04/2019 16.53, Markus Armbruster wrote:
>>> atoui() and get_index() pass char values to isdigit(). With a
>>> standard isdigit(), we'd get undefined behavior when the value is
>>> negative. But we're using isdigit()
Thomas Huth writes:
> On 18/04/2019 16.53, Markus Armbruster wrote:
>> atoui() and get_index() pass char values to isdigit(). With a
>> standard isdigit(), we'd get undefined behavior when the value is
>> negative. But we're using isdigit() from pc-bios/s390-ccw/libc.h
>> here, which behaves ni
On 18/04/2019 16.53, Markus Armbruster wrote:
> atoui() and get_index() pass char values to isdigit(). With a
> standard isdigit(), we'd get undefined behavior when the value is
> negative. But we're using isdigit() from pc-bios/s390-ccw/libc.h
> here, which behaves nicely. Clean up anyway, just
atoui() and get_index() pass char values to isdigit(). With a
standard isdigit(), we'd get undefined behavior when the value is
negative. But we're using isdigit() from pc-bios/s390-ccw/libc.h
here, which behaves nicely. Clean up anyway, just to avoid setting a
bad example.
Cc: Christian Borntr