Skip to content

Commit

Permalink
Fixed compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Apr 23, 2024
1 parent ef63c2c commit 6d18667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6d18667

Please sign in to comment.