]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Whitespace fix. Silence compiler warning.
authorCloudwalk <cloudwalk009@gmail.com>
Mon, 10 May 2021 17:59:31 +0000 (13:59 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Mon, 10 May 2021 17:59:31 +0000 (13:59 -0400)
json.c

diff --git a/json.c b/json.c
index 2f0603452674713e690f5704314b224ea6123b23..756a8161709e739a55300668ed83980b66529689 100644 (file)
--- a/json.c
+++ b/json.c
@@ -159,7 +159,7 @@ static inline qbool Json_Parse_Number(struct qjson_state_s *json)
 static inline qbool Json_Parse_Keyword(struct qjson_state_s *json, const char *keyword)
 {
        size_t keyword_size = strlen(keyword);
-       if(!strncmp(keyword, json->state->pos, keyword_size))
+       if(!strncmp(keyword, (const char *)json->state->pos, keyword_size))
        {
                Parse_Next(json->state, keyword_size - 1);
                return true;
@@ -207,7 +207,7 @@ static inline qbool Json_Parse_Pairs(struct qjson_state_s *json)
                if(Parse_NextToken(json->state) == '"')
                {
                        Json_Parse_String(json);
-                       
+
                        // And its value
                        if(Parse_NextToken(json->state) == ':')
                        {