From 5a8126c10639838b385d6b44d50a546ff4e95a36 Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Wed, 7 Dec 2016 13:39:45 +0100 Subject: [PATCH] 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 --- src/node_dtrace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_dtrace.cc b/src/node_dtrace.cc index e42c20877df126..8653b673755fde 100644 --- a/src/node_dtrace.cc +++ b/src/node_dtrace.cc @@ -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()) { \