aboutsummaryrefslogtreecommitdiff
path: root/libcore/default.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libcore/default.rs')
-rw-r--r--libcore/default.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcore/default.rs b/libcore/default.rs
index 12c4a5c..4ec4fb6 100644
--- a/libcore/default.rs
+++ b/libcore/default.rs
@@ -160,5 +160,7 @@ default_impl! { i16, 0 }
default_impl! { i32, 0 }
default_impl! { i64, 0 }
+#[cfg(not(disable_float))]
default_impl! { f32, 0.0f32 }
+#[cfg(not(disable_float))]
default_impl! { f64, 0.0f64 }