fix: warning on mingw64. This offset is calculated, casting it to u32 should be fine.
This commit is contained in:
1 parent
fe35a972f5
commit
3bfd01bffb
1 file changed
+3
-5
@@ -204,12 +204,10 @@ int TinyCborPrintFIDOPackage(uint8_t cmdCode, bool isResponse, uint8_t *data, si
|
||||
|
||||
if (err) {
|
||||
fprintf(stderr,
|
||||
#if __WORDSIZE == 64
|
||||
"CBOR parsing failure at offset %" PRId64 " : %s\n",
|
||||
#else
|
||||
"CBOR parsing failure at offset %" PRId32 " : %s\n",
|
||||
#endif
|
||||
cb.ptr - data, cbor_error_string(err));
|
||||
(uint32_t)(cb.ptr - data),
|
||||
cbor_error_string(err)
|
||||
);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user