Skip to content

Commit 0171135

Browse files
Merge branch 'master' into dev
Signed-off-by: Thiago Macieira <[email protected]>
2 parents a27578f + 7f554dd commit 0171135

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/cbor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ CBOR_INLINE_API CborError cbor_value_get_string_length(const CborValue *value, s
361361
if (!cbor_value_is_length_known(value))
362362
return CborErrorUnknownLength;
363363
uint64_t v = _cbor_value_extract_int64_helper(value);
364-
*length = v;
364+
*length = (size_t)v;
365365
if (*length != v)
366366
return CborErrorDataTooLarge;
367367
return CborNoError;
@@ -416,7 +416,7 @@ CBOR_INLINE_API CborError cbor_value_get_array_length(const CborValue *value, si
416416
if (!cbor_value_is_length_known(value))
417417
return CborErrorUnknownLength;
418418
uint64_t v = _cbor_value_extract_int64_helper(value);
419-
*length = v;
419+
*length = (size_t)v;
420420
if (*length != v)
421421
return CborErrorDataTooLarge;
422422
return CborNoError;
@@ -428,7 +428,7 @@ CBOR_INLINE_API CborError cbor_value_get_map_length(const CborValue *value, size
428428
if (!cbor_value_is_length_known(value))
429429
return CborErrorUnknownLength;
430430
uint64_t v = _cbor_value_extract_int64_helper(value);
431-
*length = v;
431+
*length = (size_t)v;
432432
if (*length != v)
433433
return CborErrorDataTooLarge;
434434
return CborNoError;

tests/.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
Makefile
22
debug
3+
moc_predefs.h
34
release
45
target_wrapper.*
5-
moc_predefs.h
6+
7+
# The executables
68
cpp/cpp
9+
cpp/cpp.exe
710
encoder/encoder
11+
encoder/encoder.exe
812
parser/parser
13+
parser/parser.exe
914
tojson/tojson
15+
tojson/tojson.exe

0 commit comments

Comments
 (0)