diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
commit | 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch) | |
tree | c0a5d21b8e19fbb60c286faec8e302e6f32b6679 /loader/texture.cpp | |
parent | 32b8c22828315292857e2cd9909fba620f30ff70 (diff) |
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'loader/texture.cpp')
-rw-r--r-- | loader/texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/texture.cpp b/loader/texture.cpp index e14d0f34..5edef9ee 100644 --- a/loader/texture.cpp +++ b/loader/texture.cpp @@ -15,7 +15,7 @@ Trade::ImageData2D loader_impl::texture(StringView prefix, StringView filename_) { ensure_plugins(); - constexpr std::size_t max_extension_length = 16; + constexpr size_t max_extension_length = 16; const auto N = prefix.size(); if (N > 0) fm_assert(prefix[N-1] == '/'); @@ -27,7 +27,7 @@ Trade::ImageData2D loader_impl::texture(StringView prefix, StringView filename_) if (N > 0) std::memcpy(filename, prefix.data(), N); std::memcpy(filename + N, filename_.data(), filename_.size()); - std::size_t len = filename_.size() + N; + size_t len = filename_.size() + N; for (const auto& extension : std::initializer_list<StringView>{ ".tga", ".png", ".webp", }) { |