mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
LUA: use long instead of int with OPT_LONG.
(cherry picked from commit bd38ed5b17
)
This commit is contained in:
parent
e4894d0414
commit
9dab353f15
@ -508,13 +508,15 @@ l_set_option(LS)
|
|||||||
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case OPT_INT:
|
case OPT_INT:
|
||||||
|
{
|
||||||
|
int value = lua_tonumber(S, 2);
|
||||||
|
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
||||||
|
break;
|
||||||
|
}
|
||||||
case OPT_LONG:
|
case OPT_LONG:
|
||||||
{
|
{
|
||||||
int value;
|
long value = lua_tonumber(S, 2);
|
||||||
|
|
||||||
value = lua_tonumber(S, 2);
|
|
||||||
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user