diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-12-22 09:10:29 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-12-22 09:10:29 +0100 |
commit | f846541d8f10a9098b70716c79f4e262abad71ff (patch) | |
tree | 3662b151ee58666e3b8d7a86dc8c1b6558dd52fd /src/vhdl/scanner.adb | |
parent | 23f5d6177cdca86aaf69eb58e2d25971db194059 (diff) | |
download | ghdl-f846541d8f10a9098b70716c79f4e262abad71ff.tar.gz ghdl-f846541d8f10a9098b70716c79f4e262abad71ff.tar.bz2 ghdl-f846541d8f10a9098b70716c79f4e262abad71ff.zip |
Scanner: fix use of latin-1 8 bit characters.
Diffstat (limited to 'src/vhdl/scanner.adb')
-rw-r--r-- | src/vhdl/scanner.adb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vhdl/scanner.adb b/src/vhdl/scanner.adb index 84efbe401..2eeac1466 100644 --- a/src/vhdl/scanner.adb +++ b/src/vhdl/scanner.adb @@ -336,9 +336,9 @@ package body Scanner is Offset: Natural; File_Entry : Source_File_Entry; begin - if Current_Context.Source = null then - raise Internal_Error; - end if; + -- Scanner must have been initialized. + pragma Assert (Current_Context.Source /= null); + Current_Token := Tok_Invalid; Current_Context.Pos := Position; Loc := File_Pos_To_Location (Current_Context.Source_File, @@ -793,7 +793,6 @@ package body Scanner is if Vhdl_Std = Vhdl_87 then Error_8bit; end if; - Len := Len + 1; C := Ada.Characters.Handling.To_Lower (C); when Digit => raise Internal_Error; |