Skip to content

Commit 0adadf7

Browse files
authored
fix pointer bug in ListBlocksOfType() (mathiask88#50)
1 parent 63c6b30 commit 0adadf7

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
@@ -1717,7 +1717,7 @@ v8::Local<v8::Array> S7Client::S7BlocksOfTypeToArray(
17171717

17181718
v8::Local<v8::Array> block_list = Nan::New<v8::Array>(count);
17191719
for (int i = 0; i < count; i++) {
1720-
Nan::Set(block_list, i, Nan::New<v8::Integer>(*BlocksList[i]));
1720+
Nan::Set(block_list, i, Nan::New<v8::Integer>((*BlocksList)[i]));
17211721
}
17221722

17231723
return scope.Escape(block_list);

0 commit comments

Comments
 (0)