Fixed wrap problem where a double could not be passed to a method taking a size_t. Also, if a method takes a bool, you now *have* to pass a logical in matlab (i.e., true or false)

release/4.3a0
Frank Dellaert 2012-06-13 12:03:33 +00:00
parent 0b04e0273e
commit d13db7a997
1 changed files with 6 additions and 2 deletions

View File

@ -32,8 +32,12 @@ string Argument::matlabClass(const string& delim) const {
result += ns + delim;
if (type=="string" || type=="unsigned char" || type=="char")
return result + "char";
if (type=="bool" || type=="int" || type=="size_t" || type=="Vector" || type=="Matrix")
if (type=="Vector" || type=="Matrix")
return result + "double";
if (type=="int" || type=="size_t")
return result + "numeric";
if (type=="bool")
return result + "logical";
return result + type;
}