From patchwork Tue Mar 19 12:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 19746 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D9E5EC32C4 for ; Tue, 19 Mar 2024 12:05:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3D3FE62CAE; Tue, 19 Mar 2024 13:05:37 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="jtES7uPO"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E4D1A62CAC for ; Tue, 19 Mar 2024 13:05:28 +0100 (CET) Received: from jasper.fritz.box (unknown [IPv6:2a00:6020:448c:6c00:1478:344b:8fcb:baf5]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 35D7BF02; Tue, 19 Mar 2024 13:05:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710849902; bh=ogedsUNacptSc0oIPMfSH3q1GS42oyNh/snuUSKDJSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jtES7uPOy8o9BAvpCvFVO01KqqNzDdFQlXx8Ilbe/JmW4VUMEo7jrPQs37iwIpuCF j7dk/fQA7XTkya33tibsuZHoS9qUdVUFxeFvjG161mTYGs9OPmj/bNj2Luj86KIaM6 wnVYN5ysSkQPsqaT4qUlgJSBivPTdboHYrCCwKXc= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH v3 06/16] libcamera: delayed_controls: Make listSize unsigned Date: Tue, 19 Mar 2024 13:05:07 +0100 Message-Id: <20240319120517.362082-7-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240319120517.362082-1-stefan.klug@ideasonboard.com> References: <20240319120517.362082-1-stefan.klug@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Make listSize unsigned, so that later calculations with other unsigned ints don't require casts. Signed-off-by: Stefan Klug --- include/libcamera/internal/delayed_controls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/internal/delayed_controls.h b/include/libcamera/internal/delayed_controls.h index 4f8d2424..0e28106a 100644 --- a/include/libcamera/internal/delayed_controls.h +++ b/include/libcamera/internal/delayed_controls.h @@ -52,7 +52,7 @@ private: }; /* \todo Make the listSize configurable at instance creation time. */ - static constexpr int listSize = 16; + static constexpr unsigned int listSize = 16; class ControlRingBuffer : public std::array { public: