summaryrefslogtreecommitdiffhomepage
path: root/compat/defs.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-05 13:25:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-05 13:25:39 +0200
commit2c26d57dc97eb7105a6dca2089fd42847a8c2b37 (patch)
treec28d8e836312a40d22b491b58b15681699647183 /compat/defs.hpp
parentcbfe7450f67eb9e0f7c9ef49d593f88527230a88 (diff)
a
Diffstat (limited to 'compat/defs.hpp')
-rw-r--r--compat/defs.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/defs.hpp b/compat/defs.hpp
index cc238022..bde7d7e3 100644
--- a/compat/defs.hpp
+++ b/compat/defs.hpp
@@ -5,7 +5,7 @@
namespace Magnum::Examples {
using size_t = std::size_t;
-using ssize_t = std::make_signed_t<std::size_t>;
+using ssize_t = std::common_type_t<std::ptrdiff_t, std::make_signed_t<std::size_t>>;
} // namespace Magnum::Examples