diff options
author | Simon Howard | 2006-10-11 23:03:19 +0000 |
---|---|---|
committer | Simon Howard | 2006-10-11 23:03:19 +0000 |
commit | 7216263bb779cb4a31d457bae0503fc24e7300e2 (patch) | |
tree | 6d70eb4d4d04660c27e37a0e83176d50a3014ffa /textscreen/txt_window.c | |
parent | 396de0009d3a045f10e101efc2d3f1b8eb07ab16 (diff) | |
download | chocolate-doom-7216263bb779cb4a31d457bae0503fc24e7300e2.tar.gz chocolate-doom-7216263bb779cb4a31d457bae0503fc24e7300e2.tar.bz2 chocolate-doom-7216263bb779cb4a31d457bae0503fc24e7300e2.zip |
Shut up compiler warnings
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 695
Diffstat (limited to 'textscreen/txt_window.c')
-rw-r--r-- | textscreen/txt_window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index ce0692d4..7a965d27 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -362,8 +362,8 @@ static void MouseButtonPress(txt_window_t *window, int b) widgets = (txt_widget_t *) window; - if (x >= widgets->x && x < widgets->x + widgets->w - && y >= widgets->y && y < widgets->y + widgets->h) + if (x >= widgets->x && x < (signed) (widgets->x + widgets->w) + && y >= widgets->y && y < (signed) (widgets->y + widgets->h)) { TXT_WidgetMousePress(window, x, y, b); } @@ -375,8 +375,8 @@ static void MouseButtonPress(txt_window_t *window, int b) widget = (txt_widget_t *) window->actions[i]; if (widget != NULL - && x >= widget->x && x < widget->x + widget->w - && y >= widget->y && y < widget->y + widget->h) + && x >= widget->x && x < (signed) (widget->x + widget->w) + && y >= widget->y && y < (signed) (widget->y + widget->h)) { TXT_WidgetMousePress(widget, x, y, b); break; |