Skip to content

Commit 08924c4

Browse files
authored
Merge pull request swiftlang#32826 from compnerd/bloating-point-operations
test: make `stdlib/Integer.swift.gyb` python 3 friendly
2 parents 89f0f5d + cb1aeea commit 08924c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/stdlib/Integers.swift.gyb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
// REQUIRES: OS=macosx
2020

2121
%{
22-
word_bits = int(WORD_BITS) / 2
22+
from __future__ import division
23+
word_bits = int(WORD_BITS) // 2
2324
from SwiftIntTypes import all_integer_types
2425
}%
2526

0 commit comments

Comments
 (0)