From ba2d6182bb7a4175d77702a19f0bcf8ab49b9648 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Thu, 4 Jul 2024 08:34:08 +0200 Subject: [PATCH] Fix warning around signed/unsigned comparison --- modules/core/src/image/vpImageConvert_yuv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/image/vpImageConvert_yuv.cpp b/modules/core/src/image/vpImageConvert_yuv.cpp index dd78882f11..3bd4ab23db 100644 --- a/modules/core/src/image/vpImageConvert_yuv.cpp +++ b/modules/core/src/image/vpImageConvert_yuv.cpp @@ -44,7 +44,7 @@ namespace { void vpSAT(int &c) { - const unsigned int val_255 = 255; + const int val_255 = 255; if (c < 0) { c = 0; }