From a7754899c0f76c6fc360b6f33a1f84c14488d42b Mon Sep 17 00:00:00 2001 From: Levente Batuska Date: Wed, 10 Jun 2026 14:11:20 +0200 Subject: [PATCH] chore(env_var): add static_cast to silence conversion warnings --- include/cpputils/env_var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cpputils/env_var.h b/include/cpputils/env_var.h index e000f00..2a6da82 100644 --- a/include/cpputils/env_var.h +++ b/include/cpputils/env_var.h @@ -98,7 +98,7 @@ class EnvVarRegistry { if (x > upper_bound) { \ return upper_bound; \ } else { \ - return x; \ + return static_cast(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(x); \ } \ } \ } catch (...) {} \