aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-31 18:06:06 +0200
committerDavid Robillard <d@drobilla.net>2020-03-31 18:06:06 +0200
commit89323040a44834632f19bb4ea0039fc253061433 (patch)
treef2e147d25ed9b82c21385c11d7b036557c7018ec
parentc4d54bb7b189e18317dc3d59a49603eb56e4908e (diff)
Fix mismatched printf parameter types
-rw-r--r--test/test_utils.h4
1 files 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;
}
}