diff --git a/include/bx/bx.h b/include/bx/bx.h index 4f5d1aa..e55c471 100644 --- a/include/bx/bx.h +++ b/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 diff --git a/include/bx/filepath.h b/include/bx/filepath.h index e539728..605f791 100644 --- a/include/bx/filepath.h +++ b/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. ///