Permalink
Browse files

Fix hexChar for inputs 0 <= i < 10

  • Loading branch information...
Anonymous Maarten Dimitri van Heesch
Anonymous Maarten authored and Dimitri van Heesch committed Sep 16, 2015
1 parent ace0af4 commit 327422d131ed5e6ddf280043b5a56a6fb92d3bbc
Showing with 1 addition and 1 deletion.
  1. +1 −1 vhdlparser/TokenMgrError.cc
@@ -64,7 +64,7 @@ namespace parser {
// i < 16 - guaranteed
char hexChar(int i) {
if (i < 10) {
return i - '0';
return i + '0';
}
return 'a' + (i - 10);
}

0 comments on commit 327422d

Please sign in to comment.