diff options
| -rw-r--r-- | any_ini.h | 2 | ||||
| -rw-r--r-- | any_log.h | 2 | ||||
| -rw-r--r-- | any_sexp.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -22,6 +22,7 @@ #include <stddef.h> #include <stdbool.h> +#include <stdio.h> // String parser (provided by any_ini_t) @@ -411,7 +412,6 @@ static void any_ini_stream_skip(any_ini_stream_t *ini, bool comment) } } - static char *any_ini_stream_until(any_ini_stream_t *ini, size_t start, char c) { char *tmp, *value = NULL; @@ -398,7 +398,7 @@ const char **any_log_colors = any_log_colors_default; #define ANY_LOG_PANIC_COLOR "\x1b[1;91m" #endif #ifndef ANY_LOG_ERROR_COLOR -#define ANY_LOG_ERROR_COLOR "\x1b[31m" +#define ANY_LOG_ERROR_COLOR "\x1b[1;31m" #endif #ifndef ANY_LOG_WARN_COLOR #define ANY_LOG_WARN_COLOR "\x1b[1;33m" @@ -335,7 +335,7 @@ any_sexp_t any_sexp_read(any_sexp_reader_t *reader) buffer[length] = '\0'; - if (number) { + if (number && !(length == 1 && buffer[0] == '-')) { intptr_t value = strtol(buffer, NULL, 10); return any_sexp_number(value); } |
