From 004ddafb87da025ee958ac163de568818963a247 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Fri, 10 Sep 2021 23:29:32 -0500 Subject: [PATCH] Fix python build. For some reason casting tp vfo_t in the RIG_VFO_N macro broke the swig parsing https://github.com/Hamlib/Hamlib/issues/786 --- include/hamlib/rig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 352d503ef..4ab368506 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -428,7 +428,7 @@ typedef unsigned int vfo_t; /** \brief '' -- used in caps */ -#define RIG_VFO_N(n) ((vfo_t)(1u<<(n))) +#define RIG_VFO_N(n) (1u<<(n)) /** \brief \c VFONone -- vfo unknown */ #define RIG_VFO_NONE 0