Parcourir la source

Change the usage of constexpr to const.

VS2013 doesn't support them.
Miku AuahDark il y a 2 ans
Parent
commit
c8e7d4e28a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/common/runtime.cpp

+ 2 - 2
src/common/runtime.cpp

@@ -143,9 +143,9 @@ static ObjectKey luax_computeloveobjectkey(lua_State *L, love::Object *object)
 	// there's no reliable way to get the correct alignment pre-C++17. Consider
 	// there's no reliable way to get the correct alignment pre-C++17. Consider
 	// that 32-bit still fits in 2^53 range, it's perfectly fine to assume
 	// that 32-bit still fits in 2^53 range, it's perfectly fine to assume
 	// alignment of 1.
 	// alignment of 1.
-	constexpr size_t minalign = 1;
+	const size_t minalign = 1;
 #else
 #else
-	constexpr size_t minalign = LOVE_ALIGNOF(std::max_align_t);
+	const size_t minalign = LOVE_ALIGNOF(std::max_align_t);
 #endif
 #endif
 	uintptr_t key = (uintptr_t) object;
 	uintptr_t key = (uintptr_t) object;