Skip to content

Commit

Permalink
be consistent with different backends
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzhang committed Mar 10, 2025
1 parent 123ccb9 commit 8b787c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion double/to_uint_wasm.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
/// inspect!((-1.0 / 0.0).to_uint(), content="0") // -Infinity
/// }
/// ```
pub fn Double::to_uint(self : Double) -> UInt = "%f64.to_u32_saturate"
pub fn to_uint(self : Double) -> UInt = "%f64.to_u32_saturate"
2 changes: 1 addition & 1 deletion float/to_int_wasm.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
/// inspect!(@float.neg_infinity.to_int(), content="-2147483648")
/// }
/// ```
pub fn Float::to_int(self : Float) -> Int = "%f32.to_i32_saturate"
pub fn to_int(self : Float) -> Int = "%f32.to_i32_saturate"

0 comments on commit 8b787c0

Please sign in to comment.