diff --git a/xs/xsp/GCode.xsp b/xs/xsp/GCode.xsp index 2b6809a39..92341394f 100644 --- a/xs/xsp/GCode.xsp +++ b/xs/xsp/GCode.xsp @@ -41,5 +41,5 @@ %}; Ref config() - %code{% RETVAL = const_cast(static_cast(&THIS->config())); %}; + %code{% RETVAL = const_cast(static_cast(static_cast(&THIS->config()))); %}; };