Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
61fe2a4f
Commit
61fe2a4f
authored
Nov 13, 2017
by
Angela Sheu
Committed by
Wouter van Oortmerssen
Nov 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix valid params limit exceeded for generated table constructor (#4490)
parent
d233b380
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
idl_gen_general.cpp
src/idl_gen_general.cpp
+3
-1
No files found.
src/idl_gen_general.cpp
View file @
61fe2a4f
...
...
@@ -1182,7 +1182,9 @@ void GenStruct(StructDef &struct_def, std::string *code_ptr) {
num_fields
++
;
}
}
if
(
has_no_struct_fields
&&
num_fields
)
{
// JVM specifications restrict default constructor params to be < 255.
// Longs and doubles take up 2 units, so we set the limit to be < 127.
if
(
has_no_struct_fields
&&
num_fields
&&
num_fields
<
127
)
{
// Generate a table constructor of the form:
// public static int createName(FlatBufferBuilder builder, args...)
code
+=
" public static "
+
GenOffsetType
(
struct_def
)
+
" "
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment