@@ -112,6 +112,8 @@ static JSON_DECODER_RESULT ParseString(PARSER_STATE* parserState, char** stringB
112
112
return result ;
113
113
}
114
114
115
+ #define ISDIGIT (c ) (((c>='0') && (c<='9'))?1:0)
116
+
115
117
static JSON_DECODER_RESULT ParseNumber (PARSER_STATE * parserState )
116
118
{
117
119
JSON_DECODER_RESULT result = JSON_DECODER_OK ;
@@ -126,7 +128,7 @@ static JSON_DECODER_RESULT ParseNumber(PARSER_STATE* parserState)
126
128
while (* (parserState -> json ) != '\0' )
127
129
{
128
130
/* Codes_SRS_JSON_DECODER_99_044:[ Octal and hex forms are not allowed.] */
129
- if (isdigit (* (parserState -> json )))
131
+ if (ISDIGIT (* (parserState -> json )))
130
132
{
131
133
digitCount ++ ;
132
134
/* simply continue */
@@ -158,7 +160,7 @@ static JSON_DECODER_RESULT ParseNumber(PARSER_STATE* parserState)
158
160
while (* (parserState -> json ) != '\0' )
159
161
{
160
162
/* Codes_SRS_JSON_DECODER_99_044:[ Octal and hex forms are not allowed.] */
161
- if (isdigit (* (parserState -> json )))
163
+ if (ISDIGIT (* (parserState -> json )))
162
164
{
163
165
digitCount ++ ;
164
166
/* simply continue */
@@ -195,7 +197,7 @@ static JSON_DECODER_RESULT ParseNumber(PARSER_STATE* parserState)
195
197
while (* (parserState -> json ) != '\0' )
196
198
{
197
199
/* Codes_SRS_JSON_DECODER_99_044:[ Octal and hex forms are not allowed.] */
198
- if (isdigit (* (parserState -> json )))
200
+ if (ISDIGIT (* (parserState -> json )))
199
201
{
200
202
digitCount ++ ;
201
203
/* simply continue */
@@ -263,7 +265,7 @@ static JSON_DECODER_RESULT ParseValue(PARSER_STATE* parserState, MULTITREE_HANDL
263
265
}
264
266
else if (
265
267
(
266
- isdigit (* (parserState -> json ))
268
+ ISDIGIT (* (parserState -> json ))
267
269
)
268
270
|| (* (parserState -> json ) == '-' ))
269
271
{
0 commit comments