Commit cffbe99e authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] boolean symbol state fix

This is an important fix to allow changing boolean symbols, whose
dependency is 'm'. All internal symbol states must be converted from
the tristate into boolean the state.

I missed this change while adding expression support for defaults,
please apply.
parent cb4acf11
...@@ -271,6 +271,8 @@ void sym_calc_value(struct symbol *sym) ...@@ -271,6 +271,8 @@ void sym_calc_value(struct symbol *sym)
if (sym_get_type(sym) == S_BOOLEAN) { if (sym_get_type(sym) == S_BOOLEAN) {
if (newval.tri == mod) if (newval.tri == mod)
newval.tri = yes; newval.tri = yes;
if (sym->visible == mod)
sym->visible = yes;
if (sym->rev_dep.tri == mod) if (sym->rev_dep.tri == mod)
sym->rev_dep.tri = yes; sym->rev_dep.tri = yes;
} }
......
Markdown is supported
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