aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 7c497bd..aa3efcc 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -1277,9 +1277,9 @@ do_java_lex (YYSTYPE *java_lval)
#ifndef JC1_LITE
/* Range checking. */
/* Temporarily set type to unsigned. */
- value = build_int_cst (long_suffix
- ? unsigned_long_type_node
- : unsigned_int_type_node, low, high);
+ value = build_int_cst_wide (long_suffix
+ ? unsigned_long_type_node
+ : unsigned_int_type_node, low, high);
SET_LVAL_NODE (value);
/* For base 10 numbers, only values up to the highest value
@@ -1300,8 +1300,8 @@ do_java_lex (YYSTYPE *java_lval)
}
/* Sign extend the value. */
- value = build_int_cst (long_suffix ? long_type_node : int_type_node,
- low, high);
+ value = build_int_cst_wide (long_suffix ? long_type_node : int_type_node,
+ low, high);
value = force_fit_type (value, 0, false, false);
if (radix != 10)
@@ -1340,7 +1340,7 @@ do_java_lex (YYSTYPE *java_lval)
char_lit = 0; /* We silently convert it to zero. */
JAVA_LEX_CHAR_LIT (char_lit);
- SET_LVAL_NODE (build_int_cst (char_type_node, char_lit, 0));
+ SET_LVAL_NODE (build_int_cst (char_type_node, char_lit));
return CHAR_LIT_TK;
}