parent
1b2695c305
commit
7ae2f5a4af
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ architecture behaviour of parser is
|
|||
|
||||
function char_to_digit(input : in character) return digit is
|
||||
begin
|
||||
if input >= '0' and input <= '9' then
|
||||
if not (input < '0') and input <= '9' then
|
||||
return character'pos(input) - character'pos('0');
|
||||
else
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue