mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-28 03:06:20 -04:00
config/options: add_opt() casts value to long then store in int... see
bug 764. Micro step to a fix.
(cherry picked from commit cde9db3d70
)
This commit is contained in:
parent
6b6473d02c
commit
174b34a2e6
@ -516,8 +516,10 @@ add_opt(struct option *tree, unsigned char *path, unsigned char *capt,
|
||||
case OPT_BOOL:
|
||||
case OPT_INT:
|
||||
case OPT_CODEPAGE:
|
||||
option->value.number = (int) value;
|
||||
break;
|
||||
case OPT_LONG:
|
||||
option->value.number = (long) value;
|
||||
option->value.number = (long) value; /* FIXME: bignumber */
|
||||
break;
|
||||
case OPT_COLOR:
|
||||
decode_color(value, strlen((unsigned char *) value),
|
||||
|
Loading…
Reference in New Issue
Block a user