summaryrefslogtreecommitdiff
path: root/Cython/Compiler/PyrexTypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Compiler/PyrexTypes.py')
-rw-r--r--Cython/Compiler/PyrexTypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
index d32e93414..b20085048 100644
--- a/Cython/Compiler/PyrexTypes.py
+++ b/Cython/Compiler/PyrexTypes.py
@@ -871,7 +871,7 @@ class MemoryViewSliceType(PyrexType):
if dst_dtype.is_cv_qualified:
dst_dtype = dst_dtype.cv_base_type
- if src_dtype != dst_dtype:
+ if not src_dtype.same_as(dst_dtype):
return False
if src.ndim != dst.ndim: