diff options
Diffstat (limited to 'scripts/gen-default-cfg.py')
-rwxr-xr-x | scripts/gen-default-cfg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen-default-cfg.py b/scripts/gen-default-cfg.py index dc88ceb..c27b482 100755 --- a/scripts/gen-default-cfg.py +++ b/scripts/gen-default-cfg.py @@ -8,10 +8,10 @@ def node_to_str(node): if(node.item.type == kconfiglib.STRING): return "std::string(\"" + node.item.str_value + "\")" elif(node.item.type == kconfiglib.INT): - return "int(" + node.item.str_value + ")" + return node.item.str_value elif(node.item.type == kconfiglib.BOOL): tri_val_str = ("false", "unknown", "true")[node.item.tri_value] - return "bool(" + tri_val_str + ")" + return tri_val_str return None |