Skip to content

Commit 666f396

Browse files
committed
CDRIVER-366: Cast to correct type
1 parent 068e0ad commit 666f396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-rpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ _mongoc_rpc_scatter (mongoc_rpc_t *rpc,
619619
return false;
620620
}
621621

622-
opcode = BSON_UINT32_FROM_LE(rpc->header.opcode);
622+
opcode = (mongoc_opcode_t)BSON_UINT32_FROM_LE(rpc->header.opcode);
623623

624624
switch (opcode) {
625625
case MONGOC_OPCODE_REPLY:

0 commit comments

Comments
 (0)