diff --git a/spiner/databox.hpp b/spiner/databox.hpp index c749d62e0..f04337967 100644 --- a/spiner/databox.hpp +++ b/spiner/databox.hpp @@ -302,7 +302,7 @@ class DataBox { DataBox getOnDevice() const { // getOnDevice is always a deep copy - if (size == 0 || status_ == DataStatus::Empty) { // edge case for unallocated + if (size() == 0 || status_ == DataStatus::Empty) { // edge case for unallocated DataBox a; return a; }