aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2017-11-07 10:20:09 +0200
committerPetri Lehtinen <petri@digip.org>2017-11-07 10:20:21 +0200
commit009ffa3fc8a4fbb5f79bdc764910149d0ea24b27 (patch)
tree98b08236fca6d30aec6591dc2e58454ecdd938f1
parent9e7847ed261636b5a505cbc9be52946f7d668724 (diff)
downloadjansson-009ffa3fc8a4fbb5f79bdc764910149d0ea24b27.zip
jansson-009ffa3fc8a4fbb5f79bdc764910149d0ea24b27.tar.gz
jansson-009ffa3fc8a4fbb5f79bdc764910149d0ea24b27.tar.bz2
Fix a compile error on macOS clang
Reported by Diederick Huijbers
-rw-r--r--src/jansson.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jansson.h b/src/jansson.h
index af84940..ecf0e09 100644
--- a/src/jansson.h
+++ b/src/jansson.h
@@ -161,7 +161,7 @@ enum json_error_code {
};
static JSON_INLINE enum json_error_code json_error_code(const json_error_t *e) {
- return e->text[JSON_ERROR_TEXT_LENGTH - 1];
+ return (enum json_error_code)e->text[JSON_ERROR_TEXT_LENGTH - 1];
}
/* getters, setters, manipulation */