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
e93a5652
Commit
e93a5652
authored
Apr 24, 2017
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for VS 2015 build.
Change-Id: I23280e611163a89b8eba7b9b0016c297fea2396e
parent
0c80b3a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CMakeLists.txt
CMakeLists.txt
+2
-1
flexbuffers.h
include/flatbuffers/flexbuffers.h
+1
-1
No files found.
CMakeLists.txt
View file @
e93a5652
...
...
@@ -146,7 +146,8 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
elseif
(
MSVC
)
# Visual Studio pedantic build settings
# warning C4512: assignment operator could not be generated
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4 /WX /wd4512"
)
# warning C4316: object allocated on the heap may not be aligned
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4 /WX /wd4512 /wd4316"
)
endif
()
if
(
FLATBUFFERS_CODE_COVERAGE
)
...
...
include/flatbuffers/flexbuffers.h
View file @
e93a5652
...
...
@@ -1281,7 +1281,7 @@ class Builder FLATBUFFERS_FINAL_CLASS {
// Write vector. First the keys width/offset if available, and size.
if
(
keys
)
{
WriteOffset
(
keys
->
u_
,
byte_width
);
Write
<
uint64_t
>
(
1U
<<
keys
->
min_bit_width_
,
byte_width
);
Write
<
uint64_t
>
(
1U
LL
<<
keys
->
min_bit_width_
,
byte_width
);
}
if
(
!
fixed
)
Write
<
uint64_t
>
(
vec_len
,
byte_width
);
// Then the actual data.
...
...
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