Skip to content

Commit

Permalink
Explicitly cast result to char
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Dec 15, 2013
1 parent f911119 commit f948b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cppmangle.c
Expand Up @@ -59,9 +59,9 @@ void writeBase36(OutBuffer *buf, unsigned i)
i %= 36;
}
if (i < 10)
buf->writeByte(i + '0');
buf->writeByte((char)(i + '0'));
else if (i < 36)
buf->writeByte(i - 10 + 'A');
buf->writeByte((char)(i - 10 + 'A'));
else
assert(0);
}
Expand Down

0 comments on commit f948b7e

Please sign in to comment.