diff options
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r-- | src/mongo/db/dbmessage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h index 95e0cfc6f7f..e280bf296be 100644 --- a/src/mongo/db/dbmessage.h +++ b/src/mongo/db/dbmessage.h @@ -227,7 +227,7 @@ public: * Indicates whether this message is expected to have a ns. */ bool messageShouldHaveNs() const { - return (_msg.operation() >= dbUpdate) & (_msg.operation() <= dbDelete); + return static_cast<int>(_msg.operation() >= dbUpdate) & (_msg.operation() <= dbDelete); } /** |