Skip to content

Commit 68da5a0

Browse files
Try to init point data array
1 parent 304934b commit 68da5a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

common/include/pcl/impl/point_types.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,12 @@ namespace pcl
210210

211211
#define PCL_ADD_UNION_POINT4D \
212212
union EIGEN_ALIGN16 { \
213-
float data[4]; \
213+
/* ensure last homogeneous component is 1 for affine transformations */ \
214+
float data[4] {0, 0, 0, 1}; \
214215
struct { \
215216
float x; \
216217
float y; \
217218
float z; \
218-
/* ensure last homogeneous component is 1 for affine transformations */ \
219-
float _w = 1; \
220219
}; \
221220
};
222221

0 commit comments

Comments
 (0)