Skip to content

Commit

Permalink
Fix LLVM constant string escaping emit (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos authored Mar 18, 2024
1 parent 5f82e7e commit 589d8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir_emit_llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ static int ir_emit_func(ir_ctx *ctx, const char *name, FILE *f)
char c = str[j];

if (c < ' ' || c >= 127) {
char c1 = c >> 8;
char c1 = (c >> 4) & 15;
char c2 = c & 15;
c1 = (c1 < 10) ? (c1 + '0') : (c1 - 10 + 'A');
c2 = (c2 < 10) ? (c2 + '0') : (c2 - 10 + 'A');
Expand Down

0 comments on commit 589d8b4

Please sign in to comment.