-
Notifications
You must be signed in to change notification settings - Fork 47
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
Use of Floats is not supported in CosmWasm #19
Comments
To be more precise WebAssembly supports floats just fine by itself, but Sasha has an application that only supports a subset of WASM that doesn't include floating point operations. |
Also addressed in #16 |
I've added a comment to #16. Although this does remove the use of the float, this makes this incompatible with the |
Thanks for having a look. You can always use a loop to count how many right shifts you need until the number turns to 0? There was another PR with the same aim as mine that did something like this. |
|
Hi @matthiasgoergens @sashaduke! I've merged your PRs and added one additional check for no-std targets. The changes are included in v1.3.0. Thank you! Please close this issue if that works for you, or I'll close it myself in some time :) Thank you! |
Awesome, thanks! |
The use of a Float32 type in
src/utils/indices.rs
results in the crate not compiling on CosmWasm's WASM VM.A fix has been proposed on this pull request.
The text was updated successfully, but these errors were encountered: