Przeglądaj źródła

Changed enum to const because enum with uint64 size does not work on VSC++ Compiler

Thomas Görlich 8 lat temu
rodzic
commit
2c6449c4fc
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      core/math/math_funcs.h

+ 1 - 3
core/math/math_funcs.h

@@ -51,9 +51,7 @@ class Math {
 public:
 public:
 	Math() {} // useless to instance
 	Math() {} // useless to instance
 
 
-	enum {
-		RANDOM_MAX = 4294967295L
-	};
+	static const uint64_t RANDOM_MAX = 4294967295;
 
 
 	static _ALWAYS_INLINE_ double sin(double p_x) { return ::sin(p_x); }
 	static _ALWAYS_INLINE_ double sin(double p_x) { return ::sin(p_x); }
 	static _ALWAYS_INLINE_ float sin(float p_x) { return ::sinf(p_x); }
 	static _ALWAYS_INLINE_ float sin(float p_x) { return ::sinf(p_x); }