Skip to content

Commit

Permalink
[Memory] Fixed passed dtypes that rely on refs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmed256 committed Feb 17, 2019
1 parent 5dea16d commit 55264f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 55264f6

Please sign in to comment.