Browse Source

config: try to make gcc happy

Michele Caini 2 năm trước cách đây
mục cha
commit
818e8755c2
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      src/entt/config/config.h

+ 1 - 1
src/entt/config/config.h

@@ -44,7 +44,7 @@
 #    define ENTT_ASSERT(condition, msg) (void(0))
 #elif !defined ENTT_ASSERT
 #    include <cassert>
-#    define ENTT_ASSERT(condition, msg) assert(condition && msg)
+#    define ENTT_ASSERT(condition, msg) assert(((condition) && msg))
 #endif
 
 #ifdef ENTT_DISABLE_ASSERT