diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2003-06-11 15:36:04 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2003-06-11 15:36:04 +0000 |
| commit | df40c144a90059845812fff088f0b274b18e3fca (patch) | |
| tree | 299e81b989828f226833205780fab4edb5bdde49 /apps | |
| parent | b010ba2f7f94ffb8db7b3d581b8aad582c0a9f7c (diff) | |
| download | rockbox-df40c144a90059845812fff088f0b274b18e3fca.zip rockbox-df40c144a90059845812fff088f0b274b18e3fca.tar.gz rockbox-df40c144a90059845812fff088f0b274b18e3fca.tar.bz2 rockbox-df40c144a90059845812fff088f0b274b18e3fca.tar.xz | |
From Bjorn: The bool variable can be located at an odd address. Trying to read an integer from an odd address will result in a CPUAdrErr exception. It would probably be better to cast oldval to a bool instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3745 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index 38b9662..b8062be 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1679,7 +1679,7 @@ bool set_option(char* string, void* variable, enum optiontype type, case BUTTON_MENU: #endif if (((type==INT) && (*intvar != oldval)) || - ((type==BOOL) && ((int)*boolvar != oldval))) { + ((type==BOOL) && (*boolvar != (bool)oldval))) { if (type==INT) *intvar=oldval; else |