From 41f2002ce1e733cb207dfb751f068a1af82f6a1c Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Fri, 8 Oct 1993 00:48:54 +0000 Subject: [PATCH] (build_binary_op): For *_DIV_EXPR, set shorten based on orig_op0. From-SVN: r5669 --- gcc/c-typeck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 05a4e02614b..096c1324370 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -1943,7 +1943,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) else /* When dividing two signed integers, you have to promote to int. E.g. (short) -32868 / (short) -1 doesn't fit in a short. */ - shorten = TREE_UNSIGNED (op0); + shorten = TREE_UNSIGNED (orig_op0); common = 1; } break; -- 2.30.2