Skip to content

Commit

Permalink
Fix bug in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Jan 7, 2025
1 parent b72b71f commit a0d9b78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ static void write_hexdigit(struct generator * g, int i) {

extern void write_hex4(struct generator * g, int ch) {
int i;
for (i = 0; i < 4; ++i) {
write_hexdigit(g, ch);
ch >>= 4;
}
for (i = 12; i >= 0; i -= 4) write_hexdigit(g, ch >> i);
}

static void write_hex(struct generator * g, int i) {
Expand Down

0 comments on commit a0d9b78

Please sign in to comment.