summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard A Hofer <rofer@google.com>2021-01-05 17:45:23 -0500
committerGitHub <noreply@github.com>2021-01-05 14:45:23 -0800
commit4363c1d2cb898768073128bb92db9d4c63b43300 (patch)
tree034d78d4e0294eba2ff96e234ae9e16c7959bbd3 /src
parent1bf1ec027011ea562757f2b85d8cd0b7831b9baa (diff)
downloadflatbuffers-4363c1d2cb898768073128bb92db9d4c63b43300.tar.gz
flatbuffers-4363c1d2cb898768073128bb92db9d4c63b43300.tar.bz2
flatbuffers-4363c1d2cb898768073128bb92db9d4c63b43300.zip
Fix generated EndVector. (#6385)
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_python.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_python.cpp b/src/idl_gen_python.cpp
index c342650b..0aa55575 100644
--- a/src/idl_gen_python.cpp
+++ b/src/idl_gen_python.cpp
@@ -628,7 +628,7 @@ class PythonGenerator : public BaseGenerator {
code += Indent + "builder.head = builder.head - len(bytes)\n";
code += Indent + "builder.Bytes[builder.head : builder.head + len(bytes)]";
code += " = bytes\n";
- code += Indent + "return builder.EndVector(len(bytes))\n";
+ code += Indent + "return builder.EndVector()\n";
}
// Get the offset of the end of a table.