From 7fb56cf9a3329ab6a679fc7e9b889b7b73fb5e00 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 20 Dec 2019 14:47:41 +0000 Subject: [PATCH] Fix compile error due to enum changes Merge request !23 changed to strongly typed enums, so we now need to explicitly cast the output in the Python getters. --- pcbnew/swig/pcbnew_scripting_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/swig/pcbnew_scripting_helpers.cpp b/pcbnew/swig/pcbnew_scripting_helpers.cpp index 4339e61bd2..6b2df1e2d8 100644 --- a/pcbnew/swig/pcbnew_scripting_helpers.cpp +++ b/pcbnew/swig/pcbnew_scripting_helpers.cpp @@ -171,7 +171,7 @@ void UpdateUserInterface() int GetUserUnits() { if( s_PcbEditFrame ) - return s_PcbEditFrame->GetUserUnits(); + return static_cast( s_PcbEditFrame->GetUserUnits() ); return -1; }