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
ae1763e2
Commit
ae1763e2
authored
Dec 27, 2014
by
dyu
Committed by
Wouter van Oortmerssen
Jan 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cast literal to csize to fix error
Change-Id: Ieddc3c5cd4f7c97a9739ae3046b8a1b328180ae1
parent
aa46f0e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test.cpp
tests/test.cpp
+1
-1
No files found.
tests/test.cpp
View file @
ae1763e2
...
@@ -137,7 +137,7 @@ void AccessFlatBufferTest(const std::string &flatbuf) {
...
@@ -137,7 +137,7 @@ void AccessFlatBufferTest(const std::string &flatbuf) {
TEST_EQ
(
pos
->
test3
().
b
(),
20
);
TEST_EQ
(
pos
->
test3
().
b
(),
20
);
auto
inventory
=
monster
->
inventory
();
auto
inventory
=
monster
->
inventory
();
TEST_EQ
(
VectorLength
(
inventory
),
10
);
// Works even if inventory is null.
TEST_EQ
(
VectorLength
(
inventory
),
10
UL
);
// Works even if inventory is null.
TEST_NOTNULL
(
inventory
);
TEST_NOTNULL
(
inventory
);
unsigned
char
inv_data
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
unsigned
char
inv_data
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
for
(
auto
it
=
inventory
->
begin
();
it
!=
inventory
->
end
();
++
it
)
for
(
auto
it
=
inventory
->
begin
();
it
!=
inventory
->
end
();
++
it
)
...
...
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