Commit b6d85190 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Correct type inconsistency in LC_OPT machinery.

parent 32418b22
...@@ -354,17 +354,17 @@ int lc_opt_std_cb(const char *name, lc_opt_type_t type, void *data, size_t lengt ...@@ -354,17 +354,17 @@ int lc_opt_std_cb(const char *name, lc_opt_type_t type, void *data, size_t lengt
case lc_opt_type_bit: case lc_opt_type_bit:
integer = va_arg(args, int); integer = va_arg(args, int);
if (integer) if (integer)
*((int *) data) |= length; *(unsigned*)data |= length;
else else
*((int *) data) &= ~length; *(unsigned*)data &= ~length;
break; break;
case lc_opt_type_negbit: case lc_opt_type_negbit:
integer = va_arg(args, int); integer = va_arg(args, int);
if (integer) if (integer)
*((int *) data) &= ~length; *(unsigned*)data &= ~length;
else else
*((int *) data) |= length; *(unsigned*)data |= length;
break; break;
case lc_opt_type_boolean: case lc_opt_type_boolean:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment