From 5d2a231a3202767ce75f3e4ed8b82c9b4f95482d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Wed, 2 Oct 2002 23:16:32 +0000 Subject: [PATCH] Balance setting was signed but loaded as unsigned git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2482 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/settings.c b/apps/settings.c index a66a8b1acf..e93411a8a2 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -265,7 +265,7 @@ int settings_save( void ) /* update the config block buffer with current settings and save the block in the RTC */ config_block[0x4] = (unsigned char)global_settings.volume; - config_block[0x5] = (unsigned char)global_settings.balance; + config_block[0x5] = (char)global_settings.balance; config_block[0x6] = (unsigned char)global_settings.bass; config_block[0x7] = (unsigned char)global_settings.treble; config_block[0x8] = (unsigned char)global_settings.loudness; @@ -362,7 +362,7 @@ void settings_load(void) if (config_block[0x4] != 0xFF) global_settings.volume = config_block[0x4]; if (config_block[0x5] != 0xFF) - global_settings.balance = config_block[0x5]; + global_settings.balance = (char)config_block[0x5]; if (config_block[0x6] != 0xFF) global_settings.bass = config_block[0x6]; if (config_block[0x7] != 0xFF)