From a2221a78fea9977e2e61d63e3fc4b7f0cc75f41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20K=C3=BCsel?= Date: Sun, 10 Mar 2024 20:00:39 +0100 Subject: [PATCH] save --- src/node_snap7_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_snap7_server.cpp b/src/node_snap7_server.cpp index 2d313e2..85c3628 100644 --- a/src/node_snap7_server.cpp +++ b/src/node_snap7_server.cpp @@ -385,7 +385,7 @@ S7Server::S7Server(const Napi::CallbackInfo &info) : Napi::ObjectWrap( tsfn.Unref(env); tsfnrw.Unref(env); - snap7Server->SetEventsCallback(static_cast(&EventCallBack), &tsfn); + snap7Server->SetEventsCallback(reinterpret_cast(&EventCallBack), &tsfn); } S7Server::~S7Server() { @@ -502,7 +502,7 @@ Napi::Value S7Server::SetResourceless(const Napi::CallbackInfo& info) { int ret; if (resourceless) { - ret = snap7Server->SetRWAreaCallback(static_cast(&RWAreaCallBack), tsfnrw); + ret = snap7Server->SetRWAreaCallback(reinterpret_cast(&RWAreaCallBack), tsfnrw); } else { ret = snap7Server->SetRWAreaCallback(NULL, NULL); }