mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
LUA: use long instead of int with OPT_LONG.
This commit is contained in:
parent
2454ceffb7
commit
bd38ed5b17
@ -502,13 +502,15 @@ l_set_option(LS)
|
||||
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
||||
break;
|
||||
}
|
||||
|
||||
case OPT_INT:
|
||||
{
|
||||
int value = lua_tonumber(S, 2);
|
||||
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
||||
break;
|
||||
}
|
||||
case OPT_LONG:
|
||||
{
|
||||
int value;
|
||||
|
||||
value = lua_tonumber(S, 2);
|
||||
long value = lua_tonumber(S, 2);
|
||||
option_types[opt->type].set(opt, (unsigned char *) (&value));
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user