diff options
author | jofret | 2008-04-21 16:04:14 +0000 |
---|---|---|
committer | jofret | 2008-04-21 16:04:14 +0000 |
commit | f146f1b82d5e5fe445b4151547185a4b85b91d56 (patch) | |
tree | 13b7ad38e6e3f6628268d1de8f845665270a3901 /src/auxiliaryFunctions/rand/testRand.c | |
parent | 63627b33d96470265bac238d0c23a70f072826a3 (diff) | |
download | scilab2c-f146f1b82d5e5fe445b4151547185a4b85b91d56.tar.gz scilab2c-f146f1b82d5e5fe445b4151547185a4b85b91d56.tar.bz2 scilab2c-f146f1b82d5e5fe445b4151547185a4b85b91d56.zip |
Double vs Float better management. Enable psycho warnings.
Diffstat (limited to 'src/auxiliaryFunctions/rand/testRand.c')
-rw-r--r-- | src/auxiliaryFunctions/rand/testRand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auxiliaryFunctions/rand/testRand.c b/src/auxiliaryFunctions/rand/testRand.c index 7db8e656..f231c95a 100644 --- a/src/auxiliaryFunctions/rand/testRand.c +++ b/src/auxiliaryFunctions/rand/testRand.c @@ -14,7 +14,7 @@ int srandsTest() { - float nan = 0. / 0.; + float nan = 0.0f / 0.0f; float result = nan; printf(">> Float \n"); @@ -26,7 +26,7 @@ int srandsTest() { int drandsTest() { - double nan = 0. / 0.; + double nan = 0.0 / 0.0; double result = nan; printf(">> Double\n"); @@ -39,7 +39,7 @@ int drandsTest() { int crandsTest() { - floatComplex nan_nan = FloatComplex(0./0., 0./0.); + floatComplex nan_nan = FloatComplex(0.0f/0.0f, 0.0f/0.0f); floatComplex result = nan_nan; printf(">> Float Complex\n"); |