浏览代码

Remove packed attribute from aiVector2

Returning a reference to a member of packed member is UB
Turo Lamminen 7 年之前
父节点
当前提交
45ad63f373
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/assimp/vector2.h

+ 1 - 1
include/assimp/vector2.h

@@ -99,7 +99,7 @@ public:
     operator aiVector2t<TOther> () const;
     operator aiVector2t<TOther> () const;
 
 
     TReal x, y;
     TReal x, y;
-} PACK_STRUCT;
+};
 
 
 typedef aiVector2t<ai_real> aiVector2D;
 typedef aiVector2t<ai_real> aiVector2D;