changeset 377:58d40daf8407

fixed literal notation
author thomask
date Sat, 02 Apr 2005 09:46:32 +0000
parents 52a8b1249941
children e555e1460d7e
files run/float_22.d run/real_22.d
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/run/float_22.d	Sat Apr 02 09:30:59 2005 +0000
+++ b/run/float_22.d	Sat Apr 02 09:46:32 2005 +0000
@@ -11,6 +11,6 @@
 int main(){
 	float f = 0.0000195f;
 	assert(typeid(typeof(0.0000195f)) == typeid(float));
-	assert(.5 + f * 1e6 == .5 + 0.0000195f * 1e6);
+	assert(.5f + f * 1e6f == .5f + 0.0000195f * 1e6f);
 	return 0;
 }
--- a/run/real_22.d	Sat Apr 02 09:30:59 2005 +0000
+++ b/run/real_22.d	Sat Apr 02 09:46:32 2005 +0000
@@ -11,6 +11,6 @@
 int main(){
 	real f = 0.0000195l;
 	assert(typeid(typeof(0.0000195l)) == typeid(real));
-	assert(.5 + f * 1e6 == .5 + 0.0000195f * 1e6);
+	assert(.5l + f * 1e6l == .5l + 0.0000195l * 1e6l);
 	return 0;
 }