mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
aux: fix -Werror=sign-compare constant comparison
This commit is contained in:
1 parent
920ac3e5c5
commit
ad7fda33dd
3 files changed
+4
-4
No files matched your search
@@ -197,7 +197,7 @@ DecodeCbor(DecodeCborCallbacks& callbacks,
|
||||
goto done;
|
||||
}
|
||||
depth++;
|
||||
if (depth > WUFFS_CBOR__DECODER_DEPTH_MAX_INCL) {
|
||||
if (depth > (int32_t)WUFFS_CBOR__DECODER_DEPTH_MAX_INCL) {
|
||||
ret_error_message =
|
||||
"wuffs_aux::DecodeCbor: internal error: bad depth";
|
||||
goto done;
|
||||
|
||||
@@ -446,7 +446,7 @@ DecodeJson(DecodeJsonCallbacks& callbacks,
|
||||
goto done;
|
||||
}
|
||||
depth++;
|
||||
if (depth > WUFFS_JSON__DECODER_DEPTH_MAX_INCL) {
|
||||
if (depth > (int32_t)WUFFS_JSON__DECODER_DEPTH_MAX_INCL) {
|
||||
ret_error_message =
|
||||
"wuffs_aux::DecodeJson: internal error: bad depth";
|
||||
goto done;
|
||||
|
||||
@@ -64623,7 +64623,7 @@ DecodeCbor(DecodeCborCallbacks& callbacks,
|
||||
goto done;
|
||||
}
|
||||
depth++;
|
||||
if (depth > WUFFS_CBOR__DECODER_DEPTH_MAX_INCL) {
|
||||
if (depth > (int32_t)WUFFS_CBOR__DECODER_DEPTH_MAX_INCL) {
|
||||
ret_error_message =
|
||||
"wuffs_aux::DecodeCbor: internal error: bad depth";
|
||||
goto done;
|
||||
@@ -65852,7 +65852,7 @@ DecodeJson(DecodeJsonCallbacks& callbacks,
|
||||
goto done;
|
||||
}
|
||||
depth++;
|
||||
if (depth > WUFFS_JSON__DECODER_DEPTH_MAX_INCL) {
|
||||
if (depth > (int32_t)WUFFS_JSON__DECODER_DEPTH_MAX_INCL) {
|
||||
ret_error_message =
|
||||
"wuffs_aux::DecodeJson: internal error: bad depth";
|
||||
goto done;
|
||||
|
||||
Reference in new issue
Block a user