From af0dde248ad1e26c032ee0237408c8a1d7b2749a Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 7 Jul 2013 16:30:08 -0400
Subject: [PATCH] Fix passing dtypes to arange()

---
 pyopencl/array.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/array.py b/pyopencl/array.py
index a5051800..fee71454 100644
--- a/pyopencl/array.py
+++ b/pyopencl/array.py
@@ -1468,7 +1468,7 @@ def arange(queue, *args, **kwargs):
     inf.wait_for = []
 
     if isinstance(args[-1], np.dtype):
-        dtype = args[-1]
+        inf.dtype = args[-1]
         args = args[:-1]
         explicit_dtype = True
 
-- 
GitLab