aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-02-03 04:32:05 +0000
committerRichard Stallman <rms@gnu.org>1992-02-03 04:32:05 +0000
commit161ca48c6991ebe9fcd0dc45e3a80a98bd11a259 (patch)
tree74b9bfafad187b23b3754876cdee49ce30e1e95b /gcc
parentd0c843905fb80277b804d96c58d07ed444519d32 (diff)
downloadgcc-161ca48c6991ebe9fcd0dc45e3a80a98bd11a259.zip
gcc-161ca48c6991ebe9fcd0dc45e3a80a98bd11a259.tar.gz
gcc-161ca48c6991ebe9fcd0dc45e3a80a98bd11a259.tar.bz2
*** empty log message ***
From-SVN: r273
Diffstat (limited to 'gcc')
-rw-r--r--gcc/real.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 1310ace..3e691ff 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -128,7 +128,8 @@ extern double (atof) ();
#ifndef REAL_VALUE_TRUNCATE
#define REAL_VALUE_TRUNCATE(mode, x) \
- (GET_MODE_BITSIZE (mode) == GET_MODE_BITSIZE (SFmode) ? (float) (x) : (x))
+ (GET_MODE_BITSIZE (mode) == sizeof (float) * HOST_BITS_PER_CHAR \
+ ? (float) (x) : (x))
#endif
/* Determine whether a floating-point value X is infinite. */