From b85ba1d671e7873855458aed1126abc0a710e658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 17 Oct 2017 15:13:15 +0200 Subject: [PATCH] Fixed broken version macros (Thanks to Frederik Salomonsson for the fix) --- src/OpenMesh/Core/System/config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenMesh/Core/System/config.h b/src/OpenMesh/Core/System/config.h index b48b1536..e0d436e3 100644 --- a/src/OpenMesh/Core/System/config.h +++ b/src/OpenMesh/Core/System/config.h @@ -71,9 +71,9 @@ // only defined, if it is a beta version //#define OM_VERSION_BETA 4 -#define OM_GET_VER ((OM_VERSION && 0xf0000) >> 16) -#define OM_GET_MAJ ((OM_VERSION && 0x0ff00) >> 8) -#define OM_GET_MIN (OM_VERSION && 0x000ff) +#define OM_GET_VER ((OM_VERSION & 0xf0000) >> 16) +#define OM_GET_MAJ ((OM_VERSION & 0x0ff00) >> 8) +#define OM_GET_MIN (OM_VERSION & 0x000ff) #ifdef WIN32 # ifdef min