Skip to content

Commit 4c73972

Browse files
committed
Fix BadInputs test which assumes X86 behaviour in a conversion overflow, which is supposed to be implementation-dependent according to the C++ specification
1 parent 5e31041 commit 4c73972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo/db/ops/modifier_push_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ namespace {
12931293
"{$push: {a: { $each: [1], $position:3.000000000001}}}",
12941294
"{$push: {a: { $each: [1], $position:1.2}}}",
12951295
"{$push: {a: { $each: [1], $position:-1.2}}}",
1296-
"{$push: {a: { $each: [1], $position:9223372036854775810}}}",
1296+
"{$push: {a: { $each: [1], $position:9223372036854777856}}}",
12971297
"{$push: {a: { $each: [1], $position:-9223372036854775810}}}",
12981298
NULL,
12991299
};

0 commit comments

Comments
 (0)