From: Cloudwalk Date: Mon, 10 May 2021 17:59:31 +0000 (-0400) Subject: Whitespace fix. Silence compiler warning. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4577ab99f2d3eb72c7b1d4f0ae93e229d4e9a3b7;p=xonotic%2Fdarkplaces.git Whitespace fix. Silence compiler warning. --- diff --git a/json.c b/json.c index 2f060345..756a8161 100644 --- 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) == ':') {