summaryrefslogtreecommitdiff
path: root/translate/grt
diff options
context:
space:
mode:
authorBrian Drummond2013-12-13 15:22:06 +0000
committerBrian Drummond2013-12-13 15:22:06 +0000
commit9c4833e90ec7f984d0a0efeaf6ea6879f2b74512 (patch)
treec6b8030efe481e08a1122dbd9e6eb9551fbb923c /translate/grt
parentbbc3ea64ca1340bcc2e6947638ba61437d0ebf3b (diff)
downloadghdl-9c4833e90ec7f984d0a0efeaf6ea6879f2b74512.tar.gz
ghdl-9c4833e90ec7f984d0a0efeaf6ea6879f2b74512.tar.bz2
ghdl-9c4833e90ec7f984d0a0efeaf6ea6879f2b74512.zip
Patch for https://gna.org/bugs/?18353
Diffstat (limited to 'translate/grt')
-rw-r--r--translate/grt/grt-values.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/translate/grt/grt-values.adb b/translate/grt/grt-values.adb
index ca82e0c..336cf4e 100644
--- a/translate/grt/grt-values.adb
+++ b/translate/grt/grt-values.adb
@@ -231,8 +231,8 @@ package body Grt.Values is
when others =>
Error_E ("'value: digit expected");
end case;
- if D > Base then
- Error_E ("'value: digit greather than base");
+ if D >= Base then
+ Error_E ("'value: digit >= base");
end if;
Val := Val * Base + D;
Pos := Pos + 1;