]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
cvScalarAll fixed to workaround a problem with BorlandC
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Thu, 21 Jul 2005 11:12:58 +0000 (11:12 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Thu, 21 Jul 2005 11:12:58 +0000 (11:12 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@292 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/include/opencv/cxtypes.h

index 8a3c12406cf3c94f54571c43de779f24673439da..724a58ec11192ca83bd71565d38028168367857e 100644 (file)
@@ -421,7 +421,7 @@ IplConvKernelFP;
 
 /* for storing double-precision
    floating point data in IplImage's */
-#define IPL_DEPTH_64F  64 
+#define IPL_DEPTH_64F  64
 
 /* get reference to pixel at (col,row),
    for multi-channel images (col) should be multiplied by number of channels */
@@ -1085,7 +1085,10 @@ CV_INLINE  CvScalar  cvRealScalar( double val0 )
 CV_INLINE  CvScalar  cvScalarAll( double val0123 )
 {
     CvScalar scalar;
-    scalar.val[0] = scalar.val[1] = scalar.val[2] = scalar.val[3] = val0123;
+    scalar.val[0] = val0123;
+    scalar.val[1] = val0123;
+    scalar.val[2] = val0123;
+    scalar.val[3] = val0123;
     return scalar;
 }