We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05f3133 commit 2dda66bCopy full SHA for 2dda66b
src/utils.cpp
@@ -3,6 +3,7 @@
3
4
ampl::Tuple list2tuple(Rcpp::List list) {
5
int p = 0;
6
+ if (list.size()==0) return ampl::Tuple();
7
ampl::Variant arguments[list.size()];
8
for(Rcpp::List::iterator it = list.begin(); it != list.end(); it++) {
9
switch(TYPEOF(*it)) {
0 commit comments