diff options
-rw-r--r-- | upb/json/printer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/printer.c b/upb/json/printer.c index 0db7b80..c290efe 100644 --- a/upb/json/printer.c +++ b/upb/json/printer.c @@ -85,7 +85,7 @@ UPB_INLINE bool is_json_escaped(char c) { return uc < kControlCharLimit || uc == '"' || uc == '\\'; } -UPB_INLINE char* json_nice_escape(char c) { +UPB_INLINE const char* json_nice_escape(char c) { switch (c) { case '"': return "\\\""; case '\\': return "\\\\"; |