[gjs/msvc.partial.fix] enum-types.h: Try again...



commit 7dc446bd6102242aef8ff357da20b31a5a3dbfca
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 8 17:23:32 2021 +0800

    enum-types.h: Try again...
    
    GCC macros and operator matching...

 gjs/enum-utils.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/enum-utils.h b/gjs/enum-utils.h
index f22033b2..f8772635 100644
--- a/gjs/enum-utils.h
+++ b/gjs/enum-utils.h
@@ -10,8 +10,8 @@
 #    define CAST_WRAPPED(x) static_cast<EnumType>(x)
 #    define CAST_WRAPPED_T(T,x) static_cast<T>(x)
 #else
-#    define CAST_WRAPPED(x) (x)
-#    define CAST_WRAPPED_T(T,x) (x)
+#    define CAST_WRAPPED(x) x
+#    define CAST_WRAPPED_T(T,x) x
 #endif
 
 namespace GjsEnum {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]