Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 6E1E51A9217 for ; Wed, 6 Jan 2021 09:23:07 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 72BB684DBC; Wed, 6 Jan 2021 09:23:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A30EE84DB9 for ; Wed, 6 Jan 2021 09:23:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id jhdhtVXipk13 for ; Wed, 6 Jan 2021 09:23:05 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 23A5184C86 for ; Wed, 6 Jan 2021 09:23:05 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 17EBBFA9D; Wed, 6 Jan 2021 09:23:05 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 6 Jan 2021 09:23:05 +0000 From: "Roland Illig" Subject: CVS commit: src/tests/usr.bin/xlint/lint1 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210106092305.17EBBFA9D@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Wed Jan 6 09:23:05 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_324.c msg_324.exp Log Message: lint: fix test for message 324 on i386 i386 is an ILP32 platform (arch/i386/targparam.h). On these platforms, int and long have the same size, and even with the -p option for portability checks, INT_RSIZE in inittyp.c is defined to 4, not 3. Because of this, in check_integer_conversion, psize(nt) was not greater than psize(ot), and the warning was not issued. To make the test behave the same on all platforms, changed the long variables to long long, since long long is 64-bit on all platforms, and int is 32-bit. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_324.c cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_324.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.