Skip to content

Commit

Permalink
Make _new_like_me preserve storage order even if dtype is unspecified…
Browse files Browse the repository at this point in the history
… (reported by Syam Gadde)
  • Loading branch information
inducer committed Jul 9, 2014
1 parent 1031862 commit ca1b1e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyopencl/array.py
Expand Up @@ -820,9 +820,9 @@ def _new_like_me(self, dtype=None, queue=None):
strides = None
if dtype is None:
dtype = self.dtype
else:
if dtype == self.dtype:
strides = self.strides

if dtype == self.dtype:
strides = self.strides

queue = queue or self.queue
if queue is not None:
Expand Down

0 comments on commit ca1b1e2

Please sign in to comment.