From 4e82c85b1c9c9b30253b8624470da6f20a6c0604 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 15 Mar 2021 21:01:47 -0600 Subject: Fix broken left shift of IV_MIN under 'use integer' This fixes GH 18639 When I wrote this code, I conflated casting and complementing. --- pp.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'pp.c') diff --git a/pp.c b/pp.c index d365afea4c..baf0777a47 100644 --- a/pp.c +++ b/pp.c @@ -2007,9 +2007,6 @@ static IV S_iv_shift(IV iv, int shift, bool left) * 18446744073709551552 * */ if (left) { - if (iv == IV_MIN) { /* Casting this to a UV is undefined behavior */ - return 0; - } return (IV) (((UV) iv) << shift); } -- cgit v1.2.1