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:
Jeff Morriss 2007-01-31 04:14:11 +00:00
parent 26b3f0b78d
commit bf110f3999
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}