Explorar el Código

Adjust for changed cast function

est31 hace 8 años
padre
commit
b870667509
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      build.rs

+ 5 - 4
build.rs

@@ -2135,12 +2135,13 @@ fn floatunsisf() {
             Self: Sized,
         {
             let a = gen_u128(rng);
-            Some(
+            let f_a = f32(a);
+            f_a.ok().map(|f| {
                 Floatuntisf {
                     a,
-                    b: to_u32(f32(a)),
-                },
-            )
+                    b: to_u32(f),
+                }
+            })
         }
 
         fn to_string(&self, buffer: &mut String) {