Skip to content

Commit 70472ad

Browse files
committed
maybe?
1 parent 6e8df3b commit 70472ad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jsrc/conversions.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ fuzzy_equal(double u, double v, double fuzz) -> bool {
2525
template <typename T, typename V>
2626
[[nodiscard]] constexpr auto
2727
in_range(V value) -> bool {
28-
if constexpr (std::is_same_v<bool, V>)
28+
if constexpr (std::is_same_v<bool, V>) {
29+
(void)value;
2930
return true;
30-
else
31+
} else {
3132
return std::numeric_limits<T>::lowest() <= value && value <= std::numeric_limits<T>::max();
33+
}
3234
}
3335

3436
template <typename T, typename V>
@@ -74,6 +76,7 @@ convert(J jt, array w, void *yv) -> bool {
7476
} else if constexpr (!in_range<To, From>()) {
7577
return convert<From, To>(jt, w, yv, [](auto v) { return value_if(in_range<To>(v), v); });
7678
} else {
79+
(void)jt;
7780
auto *v = pointer_to_values<From>(w);
7881
std::copy(v, v + AN(w), static_cast<To *>(yv));
7982
return true;

0 commit comments

Comments
 (0)