[v3,06/16] libcamera: delayed_controls: Make listSize unsigned
diff mbox series

Message ID 20240319120517.362082-7-stefan.klug@ideasonboard.com
State New
Headers show
Series
  • Preparation for per-frame-controls and initial tests
Related show

Commit Message

Stefan Klug March 19, 2024, 12:05 p.m. UTC
Make listSize unsigned, so that later calculations with other unsigned
ints don't require casts.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 include/libcamera/internal/delayed_controls.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

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<Info, listSize>
 	{
 	public: