aboutsummaryrefslogtreecommitdiff
path: root/libcore/default.rs
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-04-12 17:48:41 +0300
committerpravic <[email protected]>2016-04-12 17:48:41 +0300
commitc868536ae3f7c468ab62e4853e806d6d4150bdc5 (patch)
tree9f2b0fbe414eb81dc1cdd92aa5754e9063bf2c20 /libcore/default.rs
parentadd libcore from 2016-04-11 nightly (diff)
downloadkmd-env-rs-c868536ae3f7c468ab62e4853e806d6d4150bdc5.tar.xz
kmd-env-rs-c868536ae3f7c468ab62e4853e806d6d4150bdc5.zip
apply libcore_nofp patch
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 }