From 3bfd01bffb5e8e74539c16f01f733f81a5d70d49 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 25 Apr 2019 16:55:00 +0200 Subject: [PATCH] fix: warning on mingw64. This offset is calculated, casting it to u32 should be fine. --- client/fido/cbortools.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/fido/cbortools.c b/client/fido/cbortools.c index 1864ac7c3..d7a138779 100644 --- a/client/fido/cbortools.c +++ b/client/fido/cbortools.c @@ -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; }