Branimir Karadžić 7 years ago
parent
commit
b5f49d4c0f
2 changed files with 3 additions and 3 deletions
  1. 2 2
      include/bx/bx.h
  2. 1 1
      include/bx/filepath.h

+ 2 - 2
include/bx/bx.h

@@ -27,8 +27,8 @@
 
 namespace bx
 {
-	const int32_t kExitSuccess = 0;
-	const int32_t kExitFailure = 1;
+	constexpr int32_t kExitSuccess = 0;
+	constexpr int32_t kExitFailure = 1;
 
 	/// Template for avoiding MSVC: C4127: conditional expression is constant
 	template<bool>

+ 1 - 1
include/bx/filepath.h

@@ -14,7 +14,7 @@ BX_ERROR_RESULT(BX_ERROR_NOT_DIRECTORY, BX_MAKEFOURCC('b', 'x', 0, 1) );
 
 namespace bx
 {
-	const int32_t kMaxFilePath = 1024;
+	constexpr int32_t kMaxFilePath = 1024;
 
 	/// Special predefined OS directories.
 	///