aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/node.c b/node.c
index dda90f0f..cbf5c56e 100644
--- a/node.c
+++ b/node.c
@@ -1092,13 +1092,12 @@ make_bool_node(bool value)
const char *sval;
AWKNUM nval;
- sval = (value ? "TRUE" : "FALSE");
+ sval = (value ? "1" : "0");
nval = (value ? 1.0 : 0.0);
val = make_number(nval);
val->stptr = estrdup(sval, strlen(sval));
val->stlen = strlen(sval);
- val->flags &= ~NUMBER;
val->flags |= NUMCUR|STRCUR|BOOL;
val->stfmt = STFMT_UNUSED;