diff --git a/test/test_loopy.py b/test/test_loopy.py index ed35251e014d39dfea6a0cf692c9ca3389d431af..8c46e52d7dc0c8a0cb002c6e3094cb58c047bb3c 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1942,7 +1942,7 @@ def test_integer_reduction(ctx_factory): n = 200 for vtype in [np.int32, np.int64]: - var_int = np.random.randint(1000, size=n, dtype=vtype) + var_int = np.random.randint(1000, size=n).astype(vtype) var_lp = lp.TemporaryVariable('var', initializer=var_int, read_only=True, scope=scopes.PRIVATE,