From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#35062: [PATCH] Remove redundant multiplication of ch and cw Date: Tue, 2 Apr 2019 23:49:58 +0300 Message-ID: <20190402204958.913-1-Hi-Angel@yandex.ru> References: <1554071761.31929.0@yandex.ru> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19133"; mail-complaints-to="usenet@blaine.gmane.org" To: 35062@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 22:51:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBQNF-0004rV-Oq for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 22:51:13 +0200 Original-Received: from localhost ([127.0.0.1]:42452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBQNE-0002lu-Gj for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 16:51:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBQN5-0002ig-G5 for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 16:51:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBQN4-0005sA-JZ for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 16:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBQN4-0005rY-2M for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 16:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBQN3-0005D5-Tm for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 16:51:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <1554071761.31929.0@yandex.ru> Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2019 20:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35062 X-GNU-PR-Package: emacs Original-Received: via spool by 35062-submit@debbugs.gnu.org id=B35062.155423821519938 (code B ref 35062); Tue, 02 Apr 2019 20:51:01 +0000 Original-Received: (at 35062) by debbugs.gnu.org; 2 Apr 2019 20:50:15 +0000 Original-Received: from localhost ([127.0.0.1]:41767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBQMI-0005BV-SP for submit@debbugs.gnu.org; Tue, 02 Apr 2019 16:50:15 -0400 Original-Received: from forward106p.mail.yandex.net ([77.88.28.109]:51780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBQMF-0005B1-Am for 35062@debbugs.gnu.org; Tue, 02 Apr 2019 16:50:14 -0400 Original-Received: from mxback7j.mail.yandex.net (mxback7j.mail.yandex.net [IPv6:2a02:6b8:0:1619::110]) by forward106p.mail.yandex.net (Yandex) with ESMTP id E79891C8086D for <35062@debbugs.gnu.org>; Tue, 2 Apr 2019 23:50:03 +0300 (MSK) Original-Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback7j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id X4sF67NuuC-o3Nm37JO; Tue, 02 Apr 2019 23:50:03 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554238203; bh=94sNv0HY3D9kIuKiXy498T37G6cwAfNhuuUIFEpzhR0=; h=Subject:To:From:Date:Message-Id; b=IZjIv1AMdC3G4gV/5DYyl48eZDVWF0kVFVLeDmr5cXtR500SiXzy24HD5EqWnobXP PMz6AqTvyQ+CB/x17tXdx4G+YczfFWbQeM5G/+pSYrr7Wu5zJaN3YS7hV2hzFGXuo+ clo4oKp4FNcl4CgpJZQjmhMMySpek1NXorUftiBY= Authentication-Results: mxback7j.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id mffR6nIwsE-o3lmHOrp; Tue, 02 Apr 2019 23:50:03 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Mailer: git-send-email 2.21.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157104 Archived-At: * widget.c: multiplication by zero always equals zero --- src/widget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/widget.c b/src/widget.c index c695bd5f305..508974dd46f 100644 --- a/src/widget.c +++ b/src/widget.c @@ -297,7 +297,6 @@ update_wm_hints (EmacsFrame ew) int char_height; int base_width; int base_height; - int min_rows = 0, min_cols = 0; /* This happens when the frame is just created. */ if (! wmshell) return; @@ -323,8 +322,8 @@ update_wm_hints (EmacsFrame ew) XtNbaseHeight, (XtArgVal) base_height, XtNwidthInc, (XtArgVal) (frame_resize_pixelwise ? 1 : cw), XtNheightInc, (XtArgVal) (frame_resize_pixelwise ? 1 : ch), - XtNminWidth, (XtArgVal) (base_width + min_cols * cw), - XtNminHeight, (XtArgVal) (base_height + min_rows * ch), + XtNminWidth, (XtArgVal) base_width, + XtNminHeight, (XtArgVal) base_height, NULL); } -- 2.21.0