fixed warning
authorJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 7 Jan 2020 10:47:51 +0000 (12:47 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 7 Jan 2020 10:47:51 +0000 (12:47 +0200)
src/widgets.c

index 7796cba..8ed6d89 100644 (file)
@@ -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
+}