-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to rs 0.41.3 #238
Conversation
@universalmind303 |
Is this conversion from number to either float or int too dangerous of an assumption? It works, but....
|
Because rs-0.41.3 has introduced a int check for the slice method parameters. Passing f64 causes an error. |
Conversion from f64 to i32:
would involve changing this as well:
and it would break a number of tests like this one:
@universalmind303 Pls LMK how to do you want to proceed. Thx |
@Bidek56 can't we just cast from f64 to an accepted type #[napi(catch_unwind)]
pub fn slice(&self, offset: &JsExpr, length: &JsExpr) -> JsExpr {
self.inner
.clone()
.slice(offset.inner.clone().cast(DataType::Int64), length.inner.clone().cast(DataType::Int64))
.into()
} |
Upgrading to rs-0.41.3