From 4ab85220ace5e9828d8ee090ff04c5f252462770 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 4 Apr 2016 10:19:12 +0300 Subject: [PATCH] compiler warning fix --- trinket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trinket.c b/trinket.c index 6ff5e4d..82822b3 100644 --- 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; } -- 2.46.1