harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 16bb1fb16ac3024c2b67ba4917053ba50e41c469
parent bbabe09bddf74bd699f8ad2224fdd6e2eefbd35e
Author: Armin Weigl <tb46305@gmail.com>
Date:   Sun, 26 Jun 2022 16:18:14 +0200

emit_const: fix inverted boolean

Signed-off-by: Armin Weigl <tb46305@gmail.com>

Diffstat:
Msrc/typedef.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/typedef.c b/src/typedef.c @@ -63,7 +63,7 @@ emit_const(const struct expression *expr, FILE *out) assert(!val->object); switch (type_dealias(expr->result)->storage) { case STORAGE_BOOL: - fprintf(out, "%s", val->bval ? "false" : "true"); + fprintf(out, "%s", val->bval ? "true" : "false"); break; case STORAGE_F32: case STORAGE_F64: