summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/format.hpp2
-rw-r--r--compat/prelude.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/compat/format.hpp b/compat/format.hpp
index 1432d847..bf6e8861 100644
--- a/compat/format.hpp
+++ b/compat/format.hpp
@@ -27,7 +27,7 @@ struct fmt_string final {
template <std::size_t... Is>
consteval fmt_string(const char (&arr)[N]) noexcept {
- for (std::size_t i = 0; i < N; i++)
+ for (auto i = 0_uz; i < N; i++)
data[i] = arr[i];
}
};
diff --git a/compat/prelude.hpp b/compat/prelude.hpp
index ab2fdfd2..5520ded8 100644
--- a/compat/prelude.hpp
+++ b/compat/prelude.hpp
@@ -47,3 +47,5 @@ namespace floormat {
using Error [[maybe_unused]] = ::Corrade::Utility::Error;
namespace Path = Corrade::Utility::Path; // NOLINT(misc-unused-alias-decls)
} // namespace floormat
+
+consteval auto operator""_uz(unsigned long long int x) { return ::floormat::types::size_t(x); }