projects
/
instimg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f312c9
)
fixed warning
author
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 7 Jan 2020 10:47:51 +0000
(12:47 +0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 7 Jan 2020 10:47:51 +0000
(12:47 +0200)
src/widgets.c
patch
|
blob
|
history
diff --git
a/src/widgets.c
b/src/widgets.c
index
7796cba
..
8ed6d89
100644
(file)
--- 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
+}