aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--any_ini.h2
-rw-r--r--any_log.h2
-rw-r--r--any_sexp.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/any_ini.h b/any_ini.h
index ba89f99..f05b579 100644
--- a/any_ini.h
+++ b/any_ini.h
@@ -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;
diff --git a/any_log.h b/any_log.h
index c4f143c..1cb298a 100644
--- a/any_log.h
+++ b/any_log.h
@@ -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"
diff --git a/any_sexp.h b/any_sexp.h
index ee7c1e7..c8a394d 100644
--- a/any_sexp.h
+++ b/any_sexp.h
@@ -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);
}