1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

config/options: add_opt() casts value to long then store in int... see

bug 764. Micro step to a fix.
This commit is contained in:
Laurent MONIN 2006-06-26 17:37:10 +02:00 committed by Laurent MONIN
parent 6637272c5a
commit cde9db3d70

View File

@ -488,8 +488,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),