aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/std/textio_body.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/std/textio_body.vhdl')
-rw-r--r--libraries/std/textio_body.vhdl6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/std/textio_body.vhdl b/libraries/std/textio_body.vhdl
index 441e4d79a..1809adfc3 100644
--- a/libraries/std/textio_body.vhdl
+++ b/libraries/std/textio_body.vhdl
@@ -541,7 +541,7 @@ package body textio is
is
variable nl : line;
begin
- if l'length = 0 then
+ if l = null or l'length = 0 then
good := false;
else
value := l (l'left);
@@ -1169,10 +1169,10 @@ package body textio is
when digits =>
state := decimals;
when others =>
- return;
+ exit;
end case;
when others =>
- return;
+ exit;
end case;
end loop;