Tidy up integer argument preparation for 64/32bit builds.

We need to have different code here for the 64 and 32 bit builds - V8
provides us with different methods for the appropriately sized ints.
This commit is contained in:
Chris Andrews
2012-08-15 08:04:37 +01:00
parent ed3622a425
commit 950c386118
+5 -1
View File
@@ -80,7 +80,11 @@ namespace node {
}
else {
// int
argv[i] = (void *)(int) a->Get(i)->ToInteger()->Value();
#ifdef __x86_64__
argv[i] = (void *)(long) a->Get(i)->ToInteger()->Value();
#else
argv[i] = (void *)(int) a->Get(i)->ToInt32()->Value();
#endif
}
}