mirror of
https://github.com/hanzoai/node-dtrace-provider.git
synced 2026-09-23 23:48:45 +00:00
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:
+5
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user