Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
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
rapidjson
Commits
cdb34542
Commit
cdb34542
authored
Sep 01, 2016
by
Milo Yip
Committed by
GitHub
Sep 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #723 from niukuo/master
fix wrong length in remote schema
parents
9bd618f5
250cf666
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
schema.h
include/rapidjson/schema.h
+1
-1
schematest.cpp
test/unittest/schematest.cpp
+1
-1
No files found.
include/rapidjson/schema.h
View file @
cdb34542
...
...
@@ -1473,7 +1473,7 @@ private:
if
(
i
>
0
)
{
// Remote reference, resolve immediately
if
(
remoteProvider_
)
{
if
(
const
GenericSchemaDocument
*
remoteDocument
=
remoteProvider_
->
GetRemoteDocument
(
s
,
i
-
1
))
{
if
(
const
GenericSchemaDocument
*
remoteDocument
=
remoteProvider_
->
GetRemoteDocument
(
s
,
i
))
{
PointerType
pointer
(
&
s
[
i
],
len
-
i
,
allocator_
);
if
(
pointer
.
IsValid
())
{
if
(
const
SchemaType
*
sc
=
remoteDocument
->
GetSchema
(
pointer
))
{
...
...
test/unittest/schematest.cpp
View file @
cdb34542
...
...
@@ -1101,7 +1101,7 @@ public:
};
for
(
size_t
i
=
0
;
i
<
kCount
;
i
++
)
if
(
strncmp
(
uri
,
uris
[
i
],
length
)
==
0
)
if
(
strncmp
(
uri
,
uris
[
i
],
length
)
==
0
&&
strlen
(
uris
[
i
])
==
length
)
return
sd_
[
i
];
return
0
;
}
...
...
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