summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-02-03 04:32:05 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-02-03 04:32:05 +0000
commitb088f6825dae039ade6c891b0a3f275a082dfdac (patch)
tree74b9bfafad187b23b3754876cdee49ce30e1e95b /gcc/real.h
parent4b4d062bd1ad5d9f8cdcc02b0ebe41fb594e65aa (diff)
downloadgcc-b088f6825dae039ade6c891b0a3f275a082dfdac.tar.gz
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 1310ace37f2..3e691ff436a 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. */