Fix a compile error on macOS clang

Reported by Diederick Huijbers
This commit is contained in:
Petri Lehtinen 2017-11-07 10:20:09 +02:00
parent 9e7847ed26
commit 009ffa3fc8

View File

@ -161,7 +161,7 @@ enum json_error_code {
}; };
static JSON_INLINE enum json_error_code json_error_code(const json_error_t *e) { 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 */ /* getters, setters, manipulation */