Relax type check in SWIG_AsVal_int.
The array_member test-case revealed that integers come in as `Numbers`.
This commit is contained in:
parent
0e78fc0ad7
commit
8778146b4b
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ v8::Handle<v8::Value> SWIG_From_dec(int)(int value)
|
|||
SWIGINTERN
|
||||
int SWIG_AsVal_dec(int)(v8::Handle<v8::Value> valRef, int* val)
|
||||
{
|
||||
if (!valRef->IsInt32()) {
|
||||
if (!valRef->IsNumber()) {
|
||||
return SWIG_TypeError;
|
||||
}
|
||||
if(val) *val = valRef->IntegerValue();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue