From: Martin Mares Date: Fri, 27 Jan 2012 14:05:47 +0000 (+0100) Subject: strtonum: str_to_ now implicitly allows signs X-Git-Tag: v5.0~95 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=07bccb974fa2caa1aa60447aec29b40dcce1d5e5;p=libucw.git strtonum: str_to_ now implicitly allows signs --- diff --git a/ucw/strtonum.h b/ucw/strtonum.h index fd7e87b1..b16bd29d 100644 --- a/ucw/strtonum.h +++ b/ucw/strtonum.h @@ -39,7 +39,7 @@ const char *str_to_##suffix(type *num, const char *str, const char **next, const #define STN_SIGNED_CONVERTOR(type, suffix, usuffix) \ static inline const char *str_to_##suffix(type *num, const char *str, const char **next, const uns flags) \ { \ - return str_to_##usuffix((void *) num, str, next, flags | STN_SIGNED); \ + return str_to_##usuffix((void *) num, str, next, flags | STN_SIGNED | STN_PLUS | STN_MINUS); \ } STN_DECLARE_CONVERTOR(uns, uns);