diff options
author | Robert Dewar <dewar@adacore.com> | 2009-07-22 10:25:32 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-07-22 12:25:32 +0200 |
commit | d1ced162c2d0525032df4c98d4d14dbcc7980de7 (patch) | |
tree | 01d9b239998961b74425ecccd67bdd82369dfd29 /gcc/ada/a-ngelfu.adb | |
parent | ac3cbee587c9d65ba8d5be751c8c74ad9ba4c930 (diff) | |
download | gcc-d1ced162c2d0525032df4c98d4d14dbcc7980de7.tar.gz |
s-stchop.adb, [...]: Make sure sources obey short-circuit style rule.
2009-07-22 Robert Dewar <dewar@adacore.com>
* s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
obey short-circuit style rule.
From-SVN: r149921
Diffstat (limited to 'gcc/ada/a-ngelfu.adb')
-rw-r--r-- | gcc/ada/a-ngelfu.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/a-ngelfu.adb b/gcc/ada/a-ngelfu.adb index 62d88a48d5f..ef9aadd4306 100644 --- a/gcc/ada/a-ngelfu.adb +++ b/gcc/ada/a-ngelfu.adb @@ -602,7 +602,7 @@ package body Ada.Numerics.Generic_Elementary_Functions is T := Float_Type'Base'Remainder (X, Cycle); - if T = 0.0 or abs T = 0.5 * Cycle then + if T = 0.0 or else abs T = 0.5 * Cycle then raise Constraint_Error; elsif abs T < Sqrt_Epsilon then |