diff options
author | Simon Howard | 2009-03-06 20:01:32 +0000 |
---|---|---|
committer | Simon Howard | 2009-03-06 20:01:32 +0000 |
commit | 9b5d574982b49d0c12c5c7229a9151ad40c1bcb9 (patch) | |
tree | 1eb02d8a52165a7df0a8e71fe76af58957f00d2b | |
parent | cdd3680b9e94640cc4956ae30de734cbe1e9bf76 (diff) | |
download | chocolate-doom-9b5d574982b49d0c12c5c7229a9151ad40c1bcb9.tar.gz chocolate-doom-9b5d574982b49d0c12c5c7229a9151ad40c1bcb9.tar.bz2 chocolate-doom-9b5d574982b49d0c12c5c7229a9151ad40c1bcb9.zip |
Fix signed/unsigned conversion warning.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1448
-rw-r--r-- | textscreen/txt_scrollpane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/textscreen/txt_scrollpane.c b/textscreen/txt_scrollpane.c index e9989f19..ef6e4fb3 100644 --- a/textscreen/txt_scrollpane.c +++ b/textscreen/txt_scrollpane.c @@ -233,8 +233,8 @@ static void ShowSelectedWidget(txt_scrollpane_t *scrollpane) { scrollpane->y -= scrollpane->widget.y - selected->y; } - else if (selected->y + selected->h > - scrollpane->widget.y + scrollpane->h) + else if ((signed) (selected->y + selected->h) > + (signed) (scrollpane->widget.y + scrollpane->h)) { scrollpane->y += (selected->y + selected->h) - (scrollpane->widget.y + scrollpane->h); @@ -246,8 +246,8 @@ static void ShowSelectedWidget(txt_scrollpane_t *scrollpane) { scrollpane->x -= scrollpane->widget.x - selected->x; } - else if (selected->x + selected->w > - scrollpane->widget.x + scrollpane->w) + else if ((signed) (selected->x + selected->w) > + (signed) (scrollpane->widget.x + scrollpane->w)) { scrollpane->x += (selected->x + selected->w) - (scrollpane->widget.x + scrollpane->w); |