Browse Source

Adjust for changed cast function

est31 8 years ago
parent
commit
b870667509
1 changed files with 5 additions and 4 deletions
  1. 5 4
      build.rs

+ 5 - 4
build.rs

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