Only certain 'base' values make sense in 'prefs_register_uint_preference()': 0 and 2-36. Assert out if a different value is found.
svn path=/trunk/; revision=20644
This commit is contained in:
parent
26b3f0b78d
commit
bf110f3999
|
@ -534,6 +534,7 @@ prefs_register_uint_preference(module_t *module, const char *name,
|
|||
preference = register_preference(module, name, title, description,
|
||||
PREF_UINT);
|
||||
preference->varp.uint = var;
|
||||
g_assert(base > 0 && base != 1 && base < 37);
|
||||
preference->info.base = base;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue