Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
b6d85190
Commit
b6d85190
authored
Jul 27, 2011
by
Christoph Mallon
Browse files
Correct type inconsistency in LC_OPT machinery.
parent
32418b22
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/libcore/lc_opts.c
View file @
b6d85190
...
...
@@ -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
:
integer
=
va_arg
(
args
,
int
);
if
(
integer
)
*
(
(
int
*
)
data
)
|=
length
;
*
(
unsigned
*
)
data
|=
length
;
else
*
(
(
int
*
)
data
)
&=
~
length
;
*
(
unsigned
*
)
data
&=
~
length
;
break
;
case
lc_opt_type_negbit
:
integer
=
va_arg
(
args
,
int
);
if
(
integer
)
*
(
(
int
*
)
data
)
&=
~
length
;
*
(
unsigned
*
)
data
&=
~
length
;
else
*
(
(
int
*
)
data
)
|=
length
;
*
(
unsigned
*
)
data
|=
length
;
break
;
case
lc_opt_type_boolean
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment