Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 96731f7

Browse files
committed
Merge branch 'Convey-Compliance-fix_64_msvc_warnings'
* Convey-Compliance-fix_64_msvc_warnings: B-0 removed 64 bits warnings compiling in Visual Studio
2 parents f10b754 + f910fe0 commit 96731f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bson/bson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,7 @@ bson_compare (const bson_t *bson,
22562256
ret = memcmp (data1, data2, BSON_MIN (len1, len2));
22572257

22582258
if (ret == 0) {
2259-
ret = len1 - len2;
2259+
ret = (int64_t) (len1 - len2);
22602260
}
22612261

22622262
return (ret < 0) ? -1 : (ret > 0);

0 commit comments

Comments
 (0)