mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-12 16:00:59 +00:00
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
13c9c674fd
commit
2e865f4d4e
@@ -166,7 +166,7 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Vec3 FLATBUFFERS_FINAL_CLASS {
|
||||
|
||||
public:
|
||||
Vec3() {
|
||||
memset(this, 0, sizeof(Vec3));
|
||||
memset(static_cast<void *>(this), 0, sizeof(Vec3));
|
||||
}
|
||||
Vec3(float _x, float _y, float _z)
|
||||
: x_(flatbuffers::EndianScalar(_x)),
|
||||
|
||||
Reference in New Issue
Block a user