Skip to content
Commit c501dabf authored by Peter Hutterer's avatar Peter Hutterer
Browse files

util: check for < 0 explicitly in safe_atou



The previous check only worked if sizeof(long) > sizeof(int). Rather than be
fancy about it, just cast to a signed long, check for negativity and continue
based on that.

Fixes #137

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent d616218c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment