@@ -265,7 +265,7 @@ static const struct KnownTagData knownTagData[] = {
265
265
{ 55799 , 0U }
266
266
};
267
267
268
- static CborError validate_value (CborValue * it , int flags , int recursionLeft );
268
+ static CborError validate_value (CborValue * it , uint32_t flags , int recursionLeft );
269
269
270
270
static inline CborError validate_utf8_string (const void * ptr , size_t n )
271
271
{
@@ -279,7 +279,7 @@ static inline CborError validate_utf8_string(const void *ptr, size_t n)
279
279
return CborNoError ;
280
280
}
281
281
282
- static inline CborError validate_simple_type (uint8_t simple_type , int flags )
282
+ static inline CborError validate_simple_type (uint8_t simple_type , uint32_t flags )
283
283
{
284
284
/* At current time, all known simple types are those from RFC 7049,
285
285
* which are parsed by the parser into different CBOR types.
@@ -290,7 +290,7 @@ static inline CborError validate_simple_type(uint8_t simple_type, int flags)
290
290
CborErrorUnknownSimpleType : CborNoError ;
291
291
}
292
292
293
- static inline CborError validate_number (const CborValue * it , CborType type , int flags )
293
+ static inline CborError validate_number (const CborValue * it , CborType type , uint32_t flags )
294
294
{
295
295
CborError err = CborNoError ;
296
296
const uint8_t * ptr = it -> ptr ;
@@ -320,7 +320,7 @@ static inline CborError validate_number(const CborValue *it, CborType type, int
320
320
return CborNoError ;
321
321
}
322
322
323
- static inline CborError validate_tag (CborValue * it , CborTag tag , int flags , int recursionLeft )
323
+ static inline CborError validate_tag (CborValue * it , CborTag tag , uint32_t flags , int recursionLeft )
324
324
{
325
325
CborType type = cbor_value_get_type (it );
326
326
const size_t knownTagCount = sizeof (knownTagData ) / sizeof (knownTagData [0 ]);
@@ -373,7 +373,7 @@ static inline CborError validate_tag(CborValue *it, CborTag tag, int flags, int
373
373
}
374
374
375
375
#ifndef CBOR_NO_FLOATING_POINT
376
- static inline CborError validate_floating_point (CborValue * it , CborType type , int flags )
376
+ static inline CborError validate_floating_point (CborValue * it , CborType type , uint32_t flags )
377
377
{
378
378
CborError err ;
379
379
double val ;
@@ -435,7 +435,7 @@ static inline CborError validate_floating_point(CborValue *it, CborType type, in
435
435
}
436
436
#endif
437
437
438
- static CborError validate_container (CborValue * it , int containerType , int flags , int recursionLeft )
438
+ static CborError validate_container (CborValue * it , int containerType , uint32_t flags , int recursionLeft )
439
439
{
440
440
CborError err ;
441
441
const uint8_t * previous = NULL ;
@@ -509,7 +509,7 @@ static CborError validate_container(CborValue *it, int containerType, int flags,
509
509
return CborNoError ;
510
510
}
511
511
512
- static CborError validate_value (CborValue * it , int flags , int recursionLeft )
512
+ static CborError validate_value (CborValue * it , uint32_t flags , int recursionLeft )
513
513
{
514
514
CborError err ;
515
515
CborType type = cbor_value_get_type (it );
@@ -648,7 +648,7 @@ static CborError validate_value(CborValue *it, int flags, int recursionLeft)
648
648
*
649
649
* \sa CborValidationFlags, cbor_value_validate_basic(), cbor_value_advance()
650
650
*/
651
- CborError cbor_value_validate (const CborValue * it , int flags )
651
+ CborError cbor_value_validate (const CborValue * it , uint32_t flags )
652
652
{
653
653
CborValue value = * it ;
654
654
CborError err = validate_value (& value , flags , CBOR_PARSER_MAX_RECURSIONS );
0 commit comments