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
c8c00824
Commit
c8c00824
authored
Mar 31, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flatbuffers conversion warnings.
(from CL 116785833) Change-Id: I0fb0e1318fd70cba51e229a93f535c6639bbb331
parent
1c1d0791
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flatbuffers.h
include/flatbuffers/flatbuffers.h
+2
-2
No files found.
include/flatbuffers/flatbuffers.h
View file @
c8c00824
...
...
@@ -534,7 +534,7 @@ class vector_downward {
inline
voffset_t
FieldIndexToOffset
(
voffset_t
field_id
)
{
// Should correspond to what EndTable() below builds up.
const
int
fixed_fields
=
2
;
// Vtable size and Object Size.
return
(
field_id
+
fixed_fields
)
*
sizeof
(
voffset_t
);
return
static_cast
<
voffset_t
>
((
field_id
+
fixed_fields
)
*
sizeof
(
voffset_t
)
);
}
// Computes how many bytes you'd have to pad to be able to write an
...
...
@@ -715,7 +715,7 @@ FLATBUFFERS_FINAL_CLASS
Align
(
sizeof
(
uoffset_t
));
// Offset must refer to something already in buffer.
assert
(
off
&&
off
<=
GetSize
());
return
GetSize
()
-
off
+
s
izeof
(
uoffset_t
);
return
GetSize
()
-
off
+
s
tatic_cast
<
uoffset_t
>
(
sizeof
(
uoffset_t
)
);
}
void
NotNested
()
{
...
...
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