summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnonymous Maarten <maarten@localhost.localdomain>2015-09-16 11:38:05 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-10-20 20:03:02 (GMT)
commit327422d131ed5e6ddf280043b5a56a6fb92d3bbc (patch)
treede18a821bd76edd66badd5a71cad4247e4e18599
parentace0af42e330a96ad691b2d9a08dd3ff4abb2629 (diff)
downloadDoxygen-327422d131ed5e6ddf280043b5a56a6fb92d3bbc.zip
Doxygen-327422d131ed5e6ddf280043b5a56a6fb92d3bbc.tar.gz
Doxygen-327422d131ed5e6ddf280043b5a56a6fb92d3bbc.tar.bz2
Fix hexChar for inputs 0 <= i < 10
-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);
}