You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2024/06/22 14:50:32 UTC

(nuttx) 01/04: video/v4l2_cap: fix type overflow

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 33b539a07d5135e9da906c7b3719929673a9923b
Author: shizhenghui <sh...@xiaomi.com>
AuthorDate: Fri May 31 10:03:13 2024 +0800

    video/v4l2_cap: fix type overflow
    
    Signed-off-by: shizhenghui <sh...@xiaomi.com>
---
 drivers/video/v4l2_cap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/v4l2_cap.c b/drivers/video/v4l2_cap.c
index 2e24d0ecaf..bb6a574c9b 100644
--- a/drivers/video/v4l2_cap.c
+++ b/drivers/video/v4l2_cap.c
@@ -2907,7 +2907,7 @@ static int capture_s_selection(FAR struct file *filep,
   FAR capture_type_inf_t *type_inf;
   uint32_t p_u32[IMGSENSOR_CLIP_NELEM];
   imgsensor_value_t val;
-  int32_t id;
+  uint32_t id;
   int ret;
 
   if (cmng == NULL || clip == NULL)