Skip to content

Commit

Permalink
Fix Dev Studio bool-conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
StilesCrisis authored and StilesCrisis committed Feb 3, 2017
1 parent 20f5caa commit 1a7c5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rapidjson/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1871,15 +1871,15 @@ class GenericReader {
(1 << IterativeParsingMemberDelimiterState) |
(1 << IterativeParsingElementDelimiterState);

return (1 << s) & delimiterStateMask;
return !!((1 << s) & delimiterStateMask);
}

RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState(IterativeParsingState s) {
const unsigned int completeStateMask =
(1 << IterativeParsingFinishState) |
(1 << IterativeParsingErrorState);

return (1 << s) & completeStateMask;
return !!((1 << s) & completeStateMask);
}

template <unsigned parseFlags, typename InputStream, typename Handler>
Expand Down

0 comments on commit 1a7c5ea

Please sign in to comment.