diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-02-18 11:47:42 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-02-18 11:47:42 -0800 |
commit | 79938f3590be2be2cb4e8952a59440a79faa5a50 (patch) | |
tree | 4363d43ee0d07d448aac1bf927dc5e1344226981 | |
parent | 4cae251fb39ae09089e899bcf264dbde62dc6a12 (diff) |
Fixed const correctness of json_nice_escape().
-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 "\\\\"; |