diff --git a/test/main.c b/test/main.c index 803326b5..ca092f95 100644 --- a/test/main.c +++ b/test/main.c @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) w = newWindow("Main Window", 320, 240, 1); uiWindowOnClosing(w, onClosing, NULL); - printf("main window %p\n", w); + printf("main window %p\n", (void*)w); uiOnShouldQuit(onShouldQuit, w); diff --git a/test/menus.c b/test/menus.c index 3e75e27b..d8fc44fa 100644 --- a/test/menus.c +++ b/test/menus.c @@ -47,7 +47,7 @@ static void forceOff(uiMenuItem *item, uiWindow *w, void *data) static void whatWindow(uiMenuItem *item, uiWindow *w, void *data) { - printf("menu item clicked on window %p\n", w); + printf("menu item clicked on window %p\n", (void*)w); } void initMenus(void)