From ae19c6f24c7161fb86a0df91910d0017ec86c72a Mon Sep 17 00:00:00 2001 From: Erik Naggum Date: Thu, 22 Aug 1996 08:23:30 +0000 Subject: [PATCH] (change_frame_size_1): Clean up conditional. --- src/dispnew.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dispnew.c b/src/dispnew.c index c45649deb1e..96d513b8e59 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -2134,8 +2134,10 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay) FRAME_NEW_WIDTH (frame) = 0; /* If an argument is zero, set it to the current value. */ - newheight || (newheight = FRAME_HEIGHT (frame)); - newwidth || (newwidth = FRAME_WIDTH (frame)); + if (newheight == 0) + newheight = FRAME_HEIGHT (frame); + if (newwidth == 0) + newwidth = FRAME_WIDTH (frame); /* Round up to the smallest acceptable size. */ check_frame_size (frame, &newheight, &newwidth); -- 2.39.2