Skip to content

Commit 48d48a3

Browse files
mdouzefacebook-github-bot
authored andcommitted
fix windows test (facebookresearch#2862)
Summary: Pull Request resolved: facebookresearch#2862 Fix windows test introduced by range search diff Reviewed By: algoriddle Differential Revision: D45901726 fbshipit-source-id: 16259b7718f1409adef814ea4c2b5707304849ca
1 parent 615e3fc commit 48d48a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_build_blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def do_test(self, capacity, n):
701701
""" test that we are able to lookup """
702702
rs = np.random.RandomState(123)
703703
# make sure we have unique values
704-
keys = np.unique(rs.choice(2 ** 29, size=n))
704+
keys = np.unique(rs.choice(2 ** 29, size=n).astype("int64"))
705705
rs.shuffle(keys)
706706
n = keys.size
707707
vals = rs.choice(2 ** 30, size=n).astype('int64')

0 commit comments

Comments
 (0)