chore(env_var): add static_cast to silence conversion warnings

This commit is contained in:
2026-06-10 14:11:20 +02:00
parent f9b27643c9
commit a7754899c0

View File

@@ -98,7 +98,7 @@ class EnvVarRegistry {
if (x > upper_bound) { \
return upper_bound; \
} else { \
return x; \
return static_cast<TYPE>(x); \
} \
} else { \
auto x = std::stoll(c); \
@@ -107,7 +107,7 @@ class EnvVarRegistry {
} else if (x < lower_bound) { \
return lower_bound; \
} else { \
return x; \
return static_cast<TYPE>(x); \
} \
} \
} catch (...) {} \