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
316854c2
Commit
316854c2
authored
Jan 06, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3495 from parnic/fix-reflection-vs2012-warnings
Fixed warning building in VS2012
parents
6532bfce
e1e7dfa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
reflection.cpp
src/reflection.cpp
+1
-1
No files found.
src/reflection.cpp
View file @
316854c2
...
...
@@ -289,7 +289,7 @@ void SetString(const reflection::Schema &schema, const std::string &val,
auto
delta
=
static_cast
<
int
>
(
val
.
size
())
-
static_cast
<
int
>
(
str
->
Length
());
auto
str_start
=
static_cast
<
uoffset_t
>
(
reinterpret_cast
<
const
uint8_t
*>
(
str
)
-
flatbuf
->
data
());
auto
start
=
str_start
+
s
izeof
(
uoffset_t
);
auto
start
=
str_start
+
s
tatic_cast
<
uoffset_t
>
(
sizeof
(
uoffset_t
)
);
if
(
delta
)
{
// Clear the old string, since we don't want parts of it remaining.
memset
(
flatbuf
->
data
()
+
start
,
0
,
str
->
Length
());
...
...
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