From b1fe452ed68974aeb48f6aa7c2485afb2975bc17 Mon Sep 17 00:00:00 2001 From: smathis Date: Tue, 17 Jun 2025 09:24:20 +0200 Subject: [PATCH] Added cast for specialized function --- src/sinqAxis.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sinqAxis.h b/src/sinqAxis.h index 319116e..cc8fc81 100644 --- a/src/sinqAxis.h +++ b/src/sinqAxis.h @@ -598,8 +598,9 @@ asynStatus getAxisParamImpl(A *axis, C *controller, const char *indexName, int (C::*func)(), bool *readValue, const char *callerFunctionName, int lineNumber, TypeTag) { - return getAxisParamImpl(axis, indexName, func, (int *)readValue, - callerFunctionName, lineNumber); + return getAxisParamImpl(axis, indexName, func, + static_cast(readValue), callerFunctionName, + lineNumber); } template @@ -704,8 +705,9 @@ template asynStatus getAxisParam(A *axis, C *controller, const char *indexName, int (C::*func)(), char (*readValue)[N], const char *callerFunctionName, int lineNumber) { - return getAxisParamImpl(axis, controller, indexName, func, readValue, - callerFunctionName, lineNumber, TypeTag{}); + return getAxisParamImpl(axis, controller, indexName, func, + static_cast(readValue), callerFunctionName, + lineNumber, TypeTag{}); } /**