diff options
Diffstat (limited to 'gcc/ada/s-valboo.adb')
-rw-r--r-- | gcc/ada/s-valboo.adb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/ada/s-valboo.adb b/gcc/ada/s-valboo.adb index c569b2c3b34..5d23037e57e 100644 --- a/gcc/ada/s-valboo.adb +++ b/gcc/ada/s-valboo.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992,1993,1994 Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -49,16 +49,13 @@ package body System.Val_Bool is if S (F .. L) = "TRUE" then return True; - end if; - if S (F .. L) = "FALSE" then + elsif S (F .. L) = "FALSE" then return False; - end if; - - raise Constraint_Error; - - -- Above should use elsif, but this doesn't work in GNAT version 1.81??? + else + raise Constraint_Error; + end if; end Value_Boolean; end System.Val_Bool; |