From 6d18667242cb254796435d5580c765b0c250a6e4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 23 Apr 2024 22:29:47 +0300 Subject: [PATCH] Fixed compilation warning --- ir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ir.c b/ir.c index af368c2..211d2b8 100644 --- a/ir.c +++ b/ir.c @@ -95,7 +95,11 @@ void ir_print_escaped_str(const char *s, size_t len, FILE *f) case '\v': fputs("\\v", f); break; case '\?': fputs("\\?", f); break; default: +#ifdef __aarch64__ + if (ch < 32) { +#else if (ch >= 0 && ch < 32) { +#endif fprintf(f, "\\%c%c%c", '0' + ((ch >> 6) % 8), '0' + ((ch >> 3) % 8),