This commit is contained in:
sergey kachanovskiy 2018-03-12 16:11:09 +01:00
parent 3b638e6715
commit 2e5dcceda0

View File

@ -1860,7 +1860,12 @@ public:
//! Gets the JSON pointer pointed to the invalid value. //! Gets the JSON pointer pointed to the invalid value.
PointerType GetInvalidDocumentPointer() const { 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) { void NotMultipleOf(int64_t actual, const SValue& expected) {