Commit 1a7c5ea5 authored by StilesCrisis's avatar StilesCrisis

Fix Dev Studio bool-conversion warning

parent 20f5caa8
...@@ -1871,7 +1871,7 @@ private: ...@@ -1871,7 +1871,7 @@ private:
(1 << IterativeParsingMemberDelimiterState) | (1 << IterativeParsingMemberDelimiterState) |
(1 << IterativeParsingElementDelimiterState); (1 << IterativeParsingElementDelimiterState);
return (1 << s) & delimiterStateMask; return !!((1 << s) & delimiterStateMask);
} }
RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState(IterativeParsingState s) { RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState(IterativeParsingState s) {
...@@ -1879,7 +1879,7 @@ private: ...@@ -1879,7 +1879,7 @@ private:
(1 << IterativeParsingFinishState) | (1 << IterativeParsingFinishState) |
(1 << IterativeParsingErrorState); (1 << IterativeParsingErrorState);
return (1 << s) & completeStateMask; return !!((1 << s) & completeStateMask);
} }
template <unsigned parseFlags, typename InputStream, typename Handler> template <unsigned parseFlags, typename InputStream, typename Handler>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment