summaryrefslogtreecommitdiffstats
path: root/vhdlparser/TokenMgrError.cc
diff options
context:
space:
mode:
Diffstat (limited to 'vhdlparser/TokenMgrError.cc')
-rw-r--r--vhdlparser/TokenMgrError.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vhdlparser/TokenMgrError.cc b/vhdlparser/TokenMgrError.cc
index 6231196..2749940 100644
--- a/vhdlparser/TokenMgrError.cc
+++ b/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);
}