Skip to content

Commit

Permalink
fix wrong length in remote schema
Browse files Browse the repository at this point in the history
Change-Id: Id9b6ae11cb14a685b083169692755a52653c7b92
  • Loading branch information
niukuo committed Aug 29, 2016
1 parent 9bd618f commit 8bcca03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ class GenericSchemaDocument {

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)) {
Expand Down

0 comments on commit 8bcca03

Please sign in to comment.