Skip to content

Commit 4a60427

Browse files
committed
Return 0
1 parent 1980da1 commit 4a60427

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hpart.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ size_t build_node_from_list(const RObject& node,
171171
return my_idx;
172172
}
173173

174-
// Invalid node type
174+
// Invalid node type — unreachable when R caller validates input
175175
ASSERT(false && "Invalid node type"); // #nocov
176+
return 0; // #nocov
176177
}
177178

178179

0 commit comments

Comments
 (0)