day2/vhdl: workaround ghdl#1529

https://github.com/ghdl/ghdl/pull/1529
This commit is contained in:
Xiretza 2020-12-02 21:18:50 +01:00
parent 0090e2c8d8
commit a73387e367
Signed by: xiretza
GPG key ID: 17B78226F7139993

View file

@ -30,7 +30,7 @@ architecture behaviour of parser is
function char_to_digit(input : in character) return digit is function char_to_digit(input : in character) return digit is
begin begin
if input >= '0' and input <= '9' then if not (input < '0') and input <= '9' then
return character'pos(input) - character'pos('0'); return character'pos(input) - character'pos('0');
else else
return 0; return 0;