Permalink
Browse files

Fix hexChar for inputs 0 <= i < 10

  • Loading branch information...
Anonymous Maarten
Anonymous Maarten committed Sep 16, 2015
1 parent 790887e commit 62da4521880a03b8a92887539eaf76ccad2ee770
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 62da452

Please sign in to comment.