aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */