Code cleanup: silence some -Wnarrowing warnings from C++11
[blender.git] / extern / libmv / libmv / simple_pipeline / camera_intrinsics.cc
index ab9b21d6dfd1208a6427e6f1e993b1ff77036569..6319846a07920281786f7f1508d46d2da162ef8c 100644 (file)
@@ -209,7 +209,7 @@ void CameraIntrinsics::ComputeLookupGrid(Grid* grid, int width, int height, doub
       if( ix >= width-2 ) ix = width-2;
       if( iy >= height-2 ) iy = height-2;
 
-      Offset offset = { ix-x, iy-y, fx, fy };
+      Offset offset = { (short)(ix-x), (short)(iy-y), (unsigned char)fx, (unsigned char)fy };
       grid->offset[y*width+x] = offset;
     }
   }