From 40183e7838f192a20547366ed71f161c2f1a4292 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Tue, 7 Jan 2020 12:47:51 +0200 Subject: [PATCH] fixed warning --- src/widgets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets.c b/src/widgets.c index 7796cba..8ed6d89 100644 --- a/src/widgets.c +++ b/src/widgets.c @@ -79,7 +79,7 @@ struct wgt_window *wgt_window(const char *title, int width, int height) win->dc = GetDC(win->handle); SetLastError(0); if(!SetWindowLong(win->handle, GWL_USERDATA, (long)win) && (err = GetLastError())) { - fprintf(stderr, "wgt_create_window: failed to store window user data (err: %d)\n", err); + fprintf(stderr, "wgt_create_window: failed to store window user data (err: %d)\n", (int)err); UnregisterClass(title, hinst); DestroyWindow(win->handle); return 0; @@ -400,4 +400,4 @@ static struct wgt_widget *find_widget(struct wgt_window *win, HWND handle) w = w->next; } return 0; -} \ No newline at end of file +} -- 1.7.10.4