From 8653d94287514ca1f49e20d19bb64deaec6cdd24 Mon Sep 17 00:00:00 2001 From: FilippoR Date: Sat, 28 Feb 2026 15:02:23 +0100 Subject: [PATCH] App: Add `#include ` and switch to `std::numeric_limits` (#27742) * add missing include to fix compilation on Fedora 44 * change short limit notation --- src/App/PropertyContainer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/PropertyContainer.h b/src/App/PropertyContainer.h index 72bbeeca0b..e4ac89f4dd 100644 --- a/src/App/PropertyContainer.h +++ b/src/App/PropertyContainer.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "DynamicProperty.h" @@ -143,7 +144,7 @@ struct AppExport PropertyData short int getOffsetTo(const App::Property* prop) const { auto *pt = (const char*)prop; auto *base = (const char *)m_container; - if(ptbase+SHRT_MAX) + if(ptbase+std::numeric_limits::max()) return -1; return (short) (pt-base); }