From nobody Mon Jul 11 06:08:41 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7BB7A1D07C3C; Mon, 11 Jul 2022 06:08:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LhD3F35Vwz4367; Mon, 11 Jul 2022 06:08:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657519721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wj3vzgxClWm+bFsfqZdnK6aG0aKF08DMcK/0PDeQq0I=; b=Mgjoc/la0PJJFY2kAXaZJu1Oiy5W/4OydkruAySA0DTmafgngq0cZgFNvQjJeoZlqTazIm +XaKmxeyUbbd7uKLEbmiODW7LZuLjabtEPHSRNnfhMUEI2EEUof9fXU+CF/YtZlADf4wKR +npp1T4LI/TP3LFk0+bwHJCUY/bnsVdUfMoC8WNJ9v0v4bwHHa1oZ4whTXrc1cVIA2nSDu nViM7ylPRlAVMHkK0+JmUOpWfkzIzDjcdsVWwpzZa3HzHB41SSicEinRN0rVqX9lEGPyWx IFLlfqSPvYe5pqjs+VuExmi0VbKD9ei2NTHoHMp7JL5pyBoDnJJuVc6CbHDUTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LhD3F2BJKztRM; Mon, 11 Jul 2022 06:08:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26B68fmY077212; Mon, 11 Jul 2022 06:08:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26B68fTV077211; Mon, 11 Jul 2022 06:08:41 GMT (envelope-from git) Date: Mon, 11 Jul 2022 06:08:41 GMT Message-Id: <202207110608.26B68fTV077211@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Doug Moore Subject: git: 897877ae644d - stable/13 - : Cast _BITSTR_BITS to int in a ternary operator. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 897877ae644d3b03a550e2ba46292620865477a3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657519721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wj3vzgxClWm+bFsfqZdnK6aG0aKF08DMcK/0PDeQq0I=; b=NrHglwce2Zeqktg09n6+eJRYQSF1lRezru3abQlHPugxE/90PWFpCSuEyXv4cMMenYiyKv OoumB1AbjjfvNhMEue2FPUsq/n+S1sGC0gCBwcBzv27VLxaNico4QVrJFDOajrF3cc68S3 YW0u1LsKqhRIV+K8qQVikPCDIr2U5VpF8yVDR6Io/7YIONSQSTDVIGbZ/Z8k9cpFkO5g+B tGrSRvvytQaXwm3EmcK6zHW3b7AioA3pCVLRLno1KQ9x1/W5r4RiWZ1wRN4T74st6+KY0z NAKtACdg4gJRGszMZ+fh3dnBvsDs50Hqo17Oafb02QpVt+LVJJp9p44Fz85qwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657519721; a=rsa-sha256; cv=none; b=Q58Zd0SUgVfy2+ygf3OXA9u6F+ifqD22bW1QOux3MJR2g3nViTB3w0YPh76PQRoMygvIFz PSWhVhxPu8odfEmh4wnWRyL5lPmoRYAO5gomWKAr4/WHCm6Nk99qpvdmMHadUT2kx2mZxQ hYGkBQLNyyxpmqpaSLV4UEGxPrhAAJViwAK7JaR+P+QLkhEp7zTgpSQqZjbbfkgOOQsd56 9VDKrjBOV9jc2uCuhknFBDCNwkxTAHdRhHTalf67Ud7nxJUhXXLN/DVWBpebvhVJfKOEBD NI5Vzihe6QWrPlMVSxESDBllSE619vkiAuenPd0KQmGVmSeqi5tRvzYQ4P9jCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=897877ae644d3b03a550e2ba46292620865477a3 commit 897877ae644d3b03a550e2ba46292620865477a3 Author: John Baldwin AuthorDate: 2022-02-01 17:45:11 +0000 Commit: Doug Moore CommitDate: 2022-07-11 06:01:12 +0000 : Cast _BITSTR_BITS to int in a ternary operator. This fixes a -Wsign-compare error reported by GCC due to the two results of the ternary operator having differing signedness. Reviewed by: dougm, rlibby Differential Revision: https://reviews.freebsd.org/D34122 (cherry picked from commit 8a67a1a9646ef516fe84ecfa7ec3467b15b9e0cc) --- sys/sys/bitstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/bitstring.h b/sys/sys/bitstring.h index 13d87ce418ea..e579f0dece13 100644 --- a/sys/sys/bitstring.h +++ b/sys/sys/bitstring.h @@ -304,7 +304,7 @@ bit_ff_area_at(bitstr_t *_bitstr, int _start, int _nbits, int _size, } _mask = _match ? _BITSTR_MASK : 0; - _maxshft = _bit_idx(_size - 1) == 0 ? _size : _BITSTR_BITS; + _maxshft = _bit_idx(_size - 1) == 0 ? _size : (int)_BITSTR_BITS; _value = 0; _curbitstr = _bitstr + _bit_idx(_start); _test = ~(_BITSTR_MASK << _bit_offset(_start));