Merge pull request #1199 from kachanovskiy/master

Fixes #1198
This commit is contained in:
Milo Yip 2018-03-13 10:43:18 +08:00 committed by GitHub
commit d79533c65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1860,7 +1860,12 @@ public:
//! Gets the JSON pointer pointed to the invalid value.
PointerType GetInvalidDocumentPointer() const {
return documentStack_.Empty() ? PointerType() : PointerType(documentStack_.template Bottom<Ch>(), documentStack_.GetSize() / sizeof(Ch));
if (documentStack_.Empty()) {
return PointerType();
}
else {
return PointerType(documentStack_.template Bottom<Ch>(), documentStack_.GetSize() / sizeof(Ch));
}
}
void NotMultipleOf(int64_t actual, const SValue& expected) {