diff options
| -rw-r--r-- | gi/js-value-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/js-value-inl.h b/gi/js-value-inl.h index 7a73b72e..01fde1e5 100644 --- a/gi/js-value-inl.h +++ b/gi/js-value-inl.h @@ -214,7 +214,7 @@ GJS_JSAPI_RETURN_CONVENTION inline bool js_value_to_c_checked( static_cast<T>(std::numeric_limits<WantedType>::lowest())); if constexpr (std::is_integral_v<WantedType>) - *out_of_range |= std::isnan(*out); + *out_of_range |= std::isnan(static_cast<float>(*out)); } return ret; } |
