summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs
diff options
context:
space:
mode:
authorKevinCybura <KevinCybura@gmail.com>2018-02-06 15:14:26 -0500
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-02-10 11:52:43 -0500
commite6e8dcf826c8e25b53c8368a0d538dfbdeaee589 (patch)
treeb0461f127e4723b86ab7cd29cac637b9c1448914 /jstests/aggregation/bugs
parentc4c4bef71ecd64db91e1252200d82a2f5c265cc6 (diff)
downloadmongo-e6e8dcf826c8e25b53c8368a0d538dfbdeaee589.tar.gz
SERVER-32873 Fix incorrect handling of NumberLong in $pow function
Signed-off-by: Charlie Swanson <charlie.swanson@mongodb.com> Closes #1211
Diffstat (limited to 'jstests/aggregation/bugs')
-rw-r--r--jstests/aggregation/bugs/server18427.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/bugs/server18427.js b/jstests/aggregation/bugs/server18427.js
index 25c34a83bb1..f15c1f9e23e 100644
--- a/jstests/aggregation/bugs/server18427.js
+++ b/jstests/aggregation/bugs/server18427.js
@@ -111,7 +111,7 @@ load('jstests/aggregation/extras/utils.js');
testOp({$pow: [NumberInt("4"), NumberLong("-1")]}, 1 / 4);
testOp({$pow: [NumberInt("1"), NumberLong("-2")]}, NumberLong("1"));
testOp({$pow: [NumberInt("-1"), NumberLong("-2")]}, NumberLong("1"));
-
+ testOp({$pow: [NumberLong("-1"), NumberLong("-3")]}, NumberLong("-1"));
// If result would overflow a long, return a double.
testOp({$pow: [NumberInt("2"), NumberLong("63")]}, 9223372036854776000);
// Exact decimal result