chore(env_var): add static_cast to silence conversion warnings
This commit is contained in:
@@ -98,7 +98,7 @@ class EnvVarRegistry {
|
|||||||
if (x > upper_bound) { \
|
if (x > upper_bound) { \
|
||||||
return upper_bound; \
|
return upper_bound; \
|
||||||
} else { \
|
} else { \
|
||||||
return x; \
|
return static_cast<TYPE>(x); \
|
||||||
} \
|
} \
|
||||||
} else { \
|
} else { \
|
||||||
auto x = std::stoll(c); \
|
auto x = std::stoll(c); \
|
||||||
@@ -107,7 +107,7 @@ class EnvVarRegistry {
|
|||||||
} else if (x < lower_bound) { \
|
} else if (x < lower_bound) { \
|
||||||
return lower_bound; \
|
return lower_bound; \
|
||||||
} else { \
|
} else { \
|
||||||
return x; \
|
return static_cast<TYPE>(x); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
} catch (...) {} \
|
} catch (...) {} \
|
||||||
|
|||||||
Reference in New Issue
Block a user