From 55264f6b3d426f160dcf1f768c42d16d3ec14676 Mon Sep 17 00:00:00 2001 From: dmed256 Date: Sun, 17 Feb 2019 01:11:41 -0600 Subject: [PATCH] [Memory] Fixed passed dtypes that rely on refs --- src/core/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 48bf53ced..0da6220a8 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -206,7 +206,7 @@ namespace occa { assertInitialized(); OCCA_ERROR("Memory dtype [" << dtype__.name() << "] must be declared as global", dtype__.isGlobal()); - modeMemory->dtype_ = &dtype__; + modeMemory->dtype_ = &(dtype__.self()); } const dtype_t& memory::dtype() {