Skip to content

Commit 2dda66b

Browse files
committed
empty tuple
1 parent 05f3133 commit 2dda66b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
ampl::Tuple list2tuple(Rcpp::List list) {
55
int p = 0;
6+
if (list.size()==0) return ampl::Tuple();
67
ampl::Variant arguments[list.size()];
78
for(Rcpp::List::iterator it = list.begin(); it != list.end(); it++) {
89
switch(TYPEOF(*it)) {

0 commit comments

Comments
 (0)