compiler warning fix
authorCharlie Root <root@gringotts.local>
Mon, 4 Apr 2016 07:19:12 +0000 (10:19 +0300)
committerCharlie Root <root@gringotts.local>
Mon, 4 Apr 2016 07:19:12 +0000 (10:19 +0300)
trinket.c

index 6ff5e4d..82822b3 100644 (file)
--- a/trinket.c
+++ b/trinket.c
@@ -174,7 +174,7 @@ trinketPing() {
        }
 
        if (r != sizeof(resp)) {
-               fprintf(stderr, "hid_read_timeout  returns %d instead of %u\n", r, sizeof(resp));
+               fprintf(stderr, "hid_read_timeout  returns %d instead of %u\n", r, (unsigned int)sizeof(resp));
                return ERR_ERROR;
        }
 
@@ -247,7 +247,7 @@ trinketGetCumDose(double *value) {
        }
 
        if (r != sizeof(resp)) {
-               fprintf(stderr, "hid_read_timeout  returns %d instead of %u\n", r, sizeof(resp));
+               fprintf(stderr, "hid_read_timeout  returns %d instead of %u\n", r, (unsigned int)sizeof(resp));
                return ERR_ERROR;
        }