Allow callers to supply string literals (i.e., const char *s') to
function getField() and still build the API relatively warning free.
This commit is contained in:
1 parent
1a67fbaa6a
commit
765e68032e
1 file changed
+1
-1
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
static mxArray*
|
||||
getField(const mxArray *a, char *field, char *subfield)
|
||||
getField(const mxArray *a, const char *field, const char *subfield)
|
||||
/* ------------------------------------------------------------------ */
|
||||
{
|
||||
if (subfield)
|
||||
|
||||
Reference in new issue
Block a user