Skip to content

Commit ad12326

Browse files
committed
add type cast
1 parent 2314519 commit ad12326

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_snap7_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ namespace node_snap7{
341341

342342
v8::Local<v8::Value> argv1[1];
343343
v8::Local<v8::Value> argv2[2];
344-
argv2[0] = argv1[0] = (returnValue == 0 ? NanNull() : NanNew<v8::Integer>(returnValue));
344+
argv2[0] = argv1[0] = (returnValue == 0 ? static_cast<v8::Local<v8::Value>>(NanNull()) : static_cast<v8::Local<v8::Value>>(NanNew<v8::Integer>(returnValue)));
345345

346346
switch (caller){
347347
case READAREA:

0 commit comments

Comments
 (0)