Fixed JIT cache size being hardcoded in some places

This commit is contained in:
Dimitris Panokostas 2017-12-22 21:24:18 +01:00
parent 026a1fde11
commit aaa1a506e7
2 changed files with 2 additions and 2 deletions

View file

@ -297,7 +297,7 @@ void fixup_prefs (struct uae_prefs *p, bool userconfig)
p->produce_sound = 0;
err = 1;
}
if (p->cachesize < 0 || p->cachesize > 16384) {
if (p->cachesize < 0 || p->cachesize > MAX_JIT_CACHE) {
error_log(_T("Bad value for cachesize parameter: value must be within 0..16384."));
p->cachesize = 0;
err = 1;