瀏覽代碼

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

Thomas Görlich 8 年之前
父節點
當前提交
2c6449c4fc
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      core/math/math_funcs.h

+ 1 - 3
core/math/math_funcs.h

@@ -51,9 +51,7 @@ class Math {
 public:
 	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_ float sin(float p_x) { return ::sinf(p_x); }