diff options
Diffstat (limited to 'textscreen/txt_table.c')
-rw-r--r-- | textscreen/txt_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c index e23ff843..8b31af24 100644 --- a/textscreen/txt_table.c +++ b/textscreen/txt_table.c @@ -529,8 +529,8 @@ static void TXT_TableMousePress(TXT_UNCAST_ARG(table), int x, int y, int b) if (widget != NULL) { - if (x >= widget->x && x < widget->x + widget->w - && y >= widget->y && y < widget->y + widget->h) + if (x >= widget->x && x < (signed) (widget->x + widget->w) + && y >= widget->y && y < (signed) (widget->y + widget->h)) { // This is the widget that was clicked! |