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
1d444f63
Commit
1d444f63
authored
Sep 12, 2017
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed .proto not being accepted as schema file.
Change-Id: I1ccd52a847930fa636d24f9490d57577b8775d08
parent
5fa00630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
flatc.cpp
src/flatc.cpp
+2
-1
No files found.
src/flatc.cpp
View file @
1d444f63
...
...
@@ -292,7 +292,8 @@ int FlatCompiler::Compile(int argc, const char** argv) {
bool
is_binary
=
static_cast
<
size_t
>
(
file_it
-
filenames
.
begin
())
>=
binary_files_from
;
auto
is_schema
=
flatbuffers
::
GetExtension
(
filename
)
==
"fbs"
;
auto
ext
=
flatbuffers
::
GetExtension
(
filename
);
auto
is_schema
=
ext
==
"fbs"
||
ext
==
"proto"
;
if
(
is_binary
)
{
parser
->
builder_
.
Clear
();
parser
->
builder_
.
PushFlatBuffer
(
...
...
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