Skip to content

Commit 831295a

Browse files
authored
Merge pull request #529 from devreal/fix-missing-return
Fix warning about missing return value
2 parents dc547f3 + df593d7 commit 831295a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TiledArray/device/cpu_cuda_vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class cpu_cuda_vector {
6262

6363
size_type size() const {
6464
if (on_host()) return host_vec_.size();
65-
if (on_device()) return device_vec_.size();
65+
else return device_vec_.size();
6666
}
6767

6868
void resize(size_type new_size) {

0 commit comments

Comments
 (0)