From 89323040a44834632f19bb4ea0039fc253061433 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 31 Mar 2020 18:06:06 +0200 Subject: Fix mismatched printf parameter types --- test/test_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_utils.h b/test/test_utils.h index 34b66c0..2b470cb 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -88,7 +88,7 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) event->text.string); case PUGL_BUTTON_PRESS: case PUGL_BUTTON_RELEASE: - return (PRINT("%sMouse %d %s at " PFMT " ", + return (PRINT("%sMouse %u %s at " PFMT " ", prefix, event->button.button, (event->type == PUGL_BUTTON_PRESS) ? "down" : "up ", @@ -166,7 +166,7 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) event->motion.x, event->motion.y); default: - fprintf(stderr, "%sUnknown event type %d\n", prefix, event->type); + fprintf(stderr, "%sUnknown event type %u\n", prefix, event->type); break; } } -- cgit v1.2.1