Fix regression.
This commit is contained in:
parent
b99e8613ad
commit
b3c198ccee
1 changed files with 2 additions and 2 deletions
|
|
@ -1197,7 +1197,6 @@ String *JSEmitter::emitInputTypemap(Node *n, Parm *p, Wrapper *wrapper, String *
|
||||||
Printf(wrapper->code, "%s\n", tm);
|
Printf(wrapper->code, "%s\n", tm);
|
||||||
} else {
|
} else {
|
||||||
Swig_warning(WARN_TYPEMAP_IN_UNDEF, input_file, line_number, "Unable to use type %s as a function argument.\n", SwigType_str(type, 0));
|
Swig_warning(WARN_TYPEMAP_IN_UNDEF, input_file, line_number, "Unable to use type %s as a function argument.\n", SwigType_str(type, 0));
|
||||||
Swig_print(p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return tm;
|
return tm;
|
||||||
|
|
@ -2089,7 +2088,7 @@ void V8Emitter::marshalInputArgs(Node *n, ParmList *parms, Wrapper *wrapper, Mar
|
||||||
Setattr(n, ARGCOUNT, argcount);
|
Setattr(n, ARGCOUNT, argcount);
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (p = parms; p; p = nextSibling(p), i++) {
|
for (p = parms; p; i++) {
|
||||||
String *arg = NewString("");
|
String *arg = NewString("");
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case Getter:
|
case Getter:
|
||||||
|
|
@ -2122,6 +2121,7 @@ void V8Emitter::marshalInputArgs(Node *n, ParmList *parms, Wrapper *wrapper, Mar
|
||||||
|
|
||||||
tm = emitInputTypemap(n, p, wrapper, arg);
|
tm = emitInputTypemap(n, p, wrapper, arg);
|
||||||
Delete(arg);
|
Delete(arg);
|
||||||
|
|
||||||
if (tm) {
|
if (tm) {
|
||||||
p = Getattr(p, "tmap:in:next");
|
p = Getattr(p, "tmap:in:next");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue