From 17d90bda87dd445a974de7e644629593ade617d8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 7 Oct 2022 15:19:39 -0400 Subject: Use uppercase integer literal suffixes --- examples/pugl_window_demo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/pugl_window_demo.c') diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index b3deb0d..1827991 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -36,7 +36,7 @@ typedef struct { bool verbose; } PuglTestApp; -static const uint8_t pad = 64u; +static const uint8_t pad = 64U; static void onDisplay(PuglView* view) @@ -70,13 +70,13 @@ onKeyPress(PuglView* view, const PuglKeyEvent* event) app->quit = 1; } else if (event->state & PUGL_MOD_SHIFT) { if (event->key == PUGL_KEY_UP) { - puglSetSize(view, frame.width, frame.height - 10u); + puglSetSize(view, frame.width, frame.height - 10U); } else if (event->key == PUGL_KEY_DOWN) { - puglSetSize(view, frame.width, frame.height + 10u); + puglSetSize(view, frame.width, frame.height + 10U); } else if (event->key == PUGL_KEY_LEFT) { - puglSetSize(view, frame.width - 10u, frame.height); + puglSetSize(view, frame.width - 10U, frame.height); } else if (event->key == PUGL_KEY_RIGHT) { - puglSetSize(view, frame.width + 10u, frame.height); + puglSetSize(view, frame.width + 10U, frame.height); } } else { if (event->key == PUGL_KEY_UP) { @@ -187,8 +187,8 @@ main(int argc, char** argv) puglSetWindowTitle(view, "Pugl Window Demo"); puglSetPosition(view, - (PuglCoord)(pad + (128u + pad) * i), - (PuglCoord)(pad + (128u + pad) * i)); + (PuglCoord)(pad + (128U + pad) * i), + (PuglCoord)(pad + (128U + pad) * i)); puglSetSizeHint(view, PUGL_DEFAULT_SIZE, 512, 512); puglSetSizeHint(view, PUGL_MIN_SIZE, 128, 128); -- cgit v1.2.1