Permalink
Browse files

Fix 32bit overflow error

Fix errors like this:

/mrpt/libs/img/src/CImage.cpp:101:8: error: case value evaluates to 2147483680, which cannot be narrowed to type 'int32_t' (aka 'int') [-Wc++11-narrowing]
                case IPL_DEPTH_32S:
  • Loading branch information...
jlblancoc committed Oct 14, 2018
1 parent ff001ba commit 2d1606484b8efdd276c3968c66b83a7c4adb0c22
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/img/src/CImage.cpp
@@ -86,7 +86,7 @@ static int32_t pixelDepth2CvDepth(PixelDepth d)
return -1;
}
static PixelDepth cvDepth2PixelDepth(int32_t d)
static PixelDepth cvDepth2PixelDepth(int64_t d)
{
switch (d)
{

0 comments on commit 2d16064

Please sign in to comment.