Skip to content

Commit df593d7

Browse files
committed
Fix warning about missing return value
The vector is either on the host or the device so the second check is not necessary. Signed-off-by: Joseph Schuchart <[email protected]>
1 parent dc547f3 commit df593d7

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)