summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-02-01 14:23:17 +0000
committerNils Wallménius <nils@rockbox.org>2009-02-01 14:23:17 +0000
commitee7f12644c425063865ae5f61eba3d0e66ddc869 (patch)
tree69d4b9c84b3449f7e3be12ea2c2606929bfc158b
parenteab9afd977d438cf00fbad846d6eeb12390bb31e (diff)
downloadrockbox-ee7f12644c425063865ae5f61eba3d0e66ddc869.tar.gz
rockbox-ee7f12644c425063865ae5f61eba3d0e66ddc869.tar.bz2
rockbox-ee7f12644c425063865ae5f61eba3d0e66ddc869.zip
Use unsigned constants to avoid adding another gcc-support routine and save a few bytes. This affects SH only.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19899 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/viewport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h
index 9d5237bd28..d27692c498 100644
--- a/apps/gui/viewport.h
+++ b/apps/gui/viewport.h
@@ -62,8 +62,8 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen);
* SB "displaying rules".
*/
#define VP_SB_HIDE_ALL 0
-#define VP_SB_ONSCREEN(screen) (1<<screen)
-#define VP_SB_IGNORE_SETTING(screen) (1<<(4+screen))
+#define VP_SB_ONSCREEN(screen) (1u<<screen)
+#define VP_SB_IGNORE_SETTING(screen) (1u<<(4+screen))
#define VP_SB_ALLSCREENS (VP_SB_ONSCREEN(0)|VP_SB_ONSCREEN(1))
int viewportmanager_set_statusbar(int enabled);