From 07bccb974fa2caa1aa60447aec29b40dcce1d5e5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 27 Jan 2012 15:05:47 +0100 Subject: [PATCH] strtonum: str_to_ now implicitly allows signs --- ucw/strtonum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2