mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-19 19:45:43 +00:00
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
13c9c674fd
commit
2e865f4d4e
@@ -189,7 +189,7 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Rapunzel FLATBUFFERS_FINAL_CLASS {
|
||||
|
||||
public:
|
||||
Rapunzel() {
|
||||
memset(this, 0, sizeof(Rapunzel));
|
||||
memset(static_cast<void *>(this), 0, sizeof(Rapunzel));
|
||||
}
|
||||
Rapunzel(int32_t _hair_length)
|
||||
: hair_length_(flatbuffers::EndianScalar(_hair_length)) {
|
||||
@@ -214,7 +214,7 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) BookReader FLATBUFFERS_FINAL_CLASS {
|
||||
|
||||
public:
|
||||
BookReader() {
|
||||
memset(this, 0, sizeof(BookReader));
|
||||
memset(static_cast<void *>(this), 0, sizeof(BookReader));
|
||||
}
|
||||
BookReader(int32_t _books_read)
|
||||
: books_read_(flatbuffers::EndianScalar(_books_read)) {
|
||||
|
||||
Reference in New Issue
Block a user