Skip to content

Commit 0a538a4

Browse files
rakudramacommit-bot@chromium.org
authored andcommitted
Avoid truncating shift in lib_2/math/low_test
Change-Id: I7902c0839663775abb94c3e2dcfee14ac8e4beb3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108281 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Stephen Adams <[email protected]>
1 parent 8673b5e commit 0a538a4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/lib_2/lib_2_dartdevc.status

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ isolate/*: SkipByDesign # No support for dart:isolate in dart4web (http://dartbu
8282
js/null_test: RuntimeError # Issue 30652
8383
math/double_pow_test: RuntimeError # Issue 29922
8484
math/double_pow_test: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351
85-
math/low_test: RuntimeError # Issue 29922
8685
math/random_big_test: RuntimeError # Issue 29922
8786
mirrors/*: SkipByDesign # Mirrors not supported on web in Dart 2.0.
8887
mirrors/private_types_test: RuntimeError # Issue 29922

tests/lib_2/math/low_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "package:expect/expect.dart";
99
import 'dart:math';
1010

1111
void main() {
12-
var n = (2 * (1 << 32)) ~/ 3;
12+
var n = (2 * 0x100000000) ~/ 3;
1313
var n2 = n ~/ 2;
1414

1515
var iterations = 200000;

0 commit comments

Comments
 (0)