1
0
Fork 0
forked from len0rd/rockbox

Fix get_token_value from 7288d9e

Change-Id: I3d1b2fc37c0baa1cb178215889bf91808ba4287f
This commit is contained in:
Christian Soffke 2024-11-11 08:21:12 +01:00
parent 27c5db15e3
commit c67294913f

View file

@ -1447,7 +1447,7 @@ const char *get_token_value(struct gui_wps *gwps,
* on 16 bits ...
* but this is pretty useless anyway */
numeric_ret = *(int*)s->setting + 1;
else if (setting_get_cfgvals(s->setting) == NULL)
else if (setting_get_cfgvals(s) == NULL)
/* %?St|name|<1st choice|2nd choice|...> */
numeric_ret = (*(int*)s->setting-s->int_setting->min)
/s->int_setting->step + 1;