fix windows test (#2862)

Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2862

Fix windows test introduced by range search diff

Reviewed By: algoriddle

Differential Revision: D45901726

fbshipit-source-id: 16259b7718f1409adef814ea4c2b5707304849ca
pull/2864/head
Matthijs Douze 2023-05-17 03:17:48 -07:00 committed by Facebook GitHub Bot
parent 615e3fca7f
commit 48d48a37ac
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ class TestMapInt64ToInt64(unittest.TestCase):
""" test that we are able to lookup """
rs = np.random.RandomState(123)
# make sure we have unique values
keys = np.unique(rs.choice(2 ** 29, size=n))
keys = np.unique(rs.choice(2 ** 29, size=n).astype("int64"))
rs.shuffle(keys)
n = keys.size
vals = rs.choice(2 ** 30, size=n).astype('int64')