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 (...) {} \