summaryrefslogtreecommitdiff
path: root/gcc/ada/scn-nlit.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/scn-nlit.adb')
-rw-r--r--gcc/ada/scn-nlit.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/scn-nlit.adb b/gcc/ada/scn-nlit.adb
index d1fc9ea325f..0edb5d4c224 100644
--- a/gcc/ada/scn-nlit.adb
+++ b/gcc/ada/scn-nlit.adb
@@ -356,7 +356,7 @@ begin
-- This is especially useful when parsing garbled input.
elsif Operating_Mode /= Check_Syntax
- and then (Errors_Detected = 0 or else Try_Semantics)
+ and then (Serious_Errors_Detected = 0 or else Try_Semantics)
then
Set_Intval (Token_Node, UI_Num_Value * UI_Base ** UI_Scale);