diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-06-09 13:10:56 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-06-09 13:13:59 +0100 |
commit | 8e29e517d59f0d04dd2d09c6b8760aa1236a1abf (patch) | |
tree | fc126b0fb960def166be113827733d367f6fc9bb /amiga | |
parent | e687a359c702e13a7f3e7bb5ba8e7b76d32283b1 (diff) | |
download | netsurf-8e29e517d59f0d04dd2d09c6b8760aa1236a1abf.tar.gz |
fix disc cache size option to be unsigned
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui_options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c index 0b01a93d4..3a6451b97 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -1157,7 +1157,7 @@ void ami_gui_opts_open(void) LAYOUT_AddChild, gow->objects[GID_OPTS_CACHE_DISC] = IntegerObject, GA_ID, GID_OPTS_CACHE_DISC, GA_RelVerify, TRUE, - INTEGER_Number, nsoption_int(disc_cache_size) / 1048576, + INTEGER_Number, nsoption_uint(disc_cache_size) / 1048576, INTEGER_Minimum, 0, INTEGER_Maximum, 4096, INTEGER_Arrows, TRUE, @@ -1750,8 +1750,8 @@ void ami_gui_opts_use(bool save) GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_MEM],(ULONG *)&nsoption_int(memory_cache_size)); nsoption_set_int(memory_cache_size, nsoption_int(memory_cache_size) * 1048576); - GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_DISC],(ULONG *)&nsoption_int(disc_cache_size)); - nsoption_set_int(disc_cache_size, nsoption_int(disc_cache_size) * 1048576); + GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_DISC],(ULONG *)&nsoption_uint(disc_cache_size)); + nsoption_set_uint(disc_cache_size, nsoption_uint(disc_cache_size) * 1048576); GetAttr(GA_Selected,gow->objects[GID_OPTS_OVERWRITE],(ULONG *)&data); if (data) { |