aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/trans.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2018-03-06 12:21:27 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2018-03-06 12:21:27 +0000
commit2128896318a0e71a002566d2150a54dd6a44765d (patch)
treeea28b1f1abc2e185f30e538f7885d628ed9dc649 /gcc/ada/gcc-interface/trans.c
parent0d6091d924c5cb0bb2ee1c6d165fc92219917e2a (diff)
downloadgcc-2128896318a0e71a002566d2150a54dd6a44765d.zip
gcc-2128896318a0e71a002566d2150a54dd6a44765d.tar.gz
gcc-2128896318a0e71a002566d2150a54dd6a44765d.tar.bz2
trans.c (convert_with_check): Fix typo in the condition guarding the overflow check emitted for the upper...
* gcc-interface/trans.c (convert_with_check): Fix typo in the condition guarding the overflow check emitted for the upper bound of a floating- point conversion. From-SVN: r258277
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
-rw-r--r--gcc/ada/gcc-interface/trans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c
index 587063b..ac80a3e 100644
--- a/gcc/ada/gcc-interface/trans.c
+++ b/gcc/ada/gcc-interface/trans.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2017, Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2018, 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- *
@@ -9381,7 +9381,7 @@ convert_with_check (Entity_Id gnat_type, tree gnu_expr, bool overflow_p,
? tree_int_cst_lt (gnu_out_ub, gnu_in_ub)
: (FLOAT_TYPE_P (gnu_base_type)
? real_less (&TREE_REAL_CST (gnu_out_ub),
- &TREE_REAL_CST (gnu_in_lb))
+ &TREE_REAL_CST (gnu_in_ub))
: 1))
gnu_cond
= build_binary_op (TRUTH_ORIF_EXPR, boolean_type_node, gnu_cond,