mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 03:01:37 +00:00
[Python] Fixed potential allignment issue (#5768)
This commit is contained in:
@@ -515,7 +515,7 @@ class Builder(object):
|
|||||||
N.enforce_number(rootTable, N.UOffsetTFlags)
|
N.enforce_number(rootTable, N.UOffsetTFlags)
|
||||||
|
|
||||||
if file_identifier is not None:
|
if file_identifier is not None:
|
||||||
self.Prep(N.UOffsetTFlags.bytewidth, N.Uint8Flags.bytewidth*4)
|
self.Prep(N.UOffsetTFlags.bytewidth, encode.FILE_IDENTIFIER_LENGTH)
|
||||||
|
|
||||||
# Convert bytes object file_identifier to an array of 4 8-bit integers,
|
# Convert bytes object file_identifier to an array of 4 8-bit integers,
|
||||||
# and use big-endian to enforce size compliance.
|
# and use big-endian to enforce size compliance.
|
||||||
|
|||||||
Reference in New Issue
Block a user