Permalink
Browse files

dtrace: resolve conversion warnings from SLURP_INT

Resolve build warnings on Windows with the following pattern:
warning C4244: '=': conversion from 'int64_t' to 'int32_t',
possible loss of data

PR-URL: #10143
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
1 parent 4f1d945 commit f9a5c13ff30818231c89b65a6196ba015e1b7b1f @brodybits brodybits committed with evanlucas Dec 7, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node_dtrace.cc
View
@@ -57,7 +57,7 @@ using v8::Value;
"expected object for " #obj " to contain integer member " #member); \
} \
*valp = obj->Get(OneByteString(env->isolate(), #member)) \
- ->ToInteger(env->isolate())->Value();
+ ->Int32Value();
#define SLURP_OBJECT(obj, member, valp) \
if (!(obj)->IsObject()) { \

0 comments on commit f9a5c13

Please sign in to comment.