Skip to content

Commit 7d09c9d

Browse files
committed
Use 64-bit integers when computing numbers bigger than 2^32.
1 parent ae7f7bb commit 7d09c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/PrintFloat.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ PrintTests.test("Printable_Double") {
694694
}
695695

696696
// Double can represent all integers -(2^53)...(2^53)
697-
let maxDecimalForm = Double(1 << 53)
697+
let maxDecimalForm = Double((1 as Int64) << 53)
698698
expectDescription("9007199254740992.0", maxDecimalForm)
699699
expectDescription("-9007199254740992.0", -maxDecimalForm)
700700
// Outside of that range, we use exponential form:

0 commit comments

Comments
 (0)