aboutsummaryrefslogtreecommitdiff
path: root/libcore/default.rs
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-04-29 21:25:33 +0300
committerpravic <[email protected]>2016-04-29 21:25:33 +0300
commit8c8ef9d5b88377f345220e577ca78e1713b87539 (patch)
tree9bf7ae22e9e635b67734aeb14226d4ed9e0b58c0 /libcore/default.rs
parentadd libcore from 2016-04-11 nightly (diff)
downloadkmd-env-rs-8c8ef9d5b88377f345220e577ca78e1713b87539.tar.xz
kmd-env-rs-8c8ef9d5b88377f345220e577ca78e1713b87539.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 }