aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmt/nan64.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-09-23 03:05:40 +0000
committerrsc <devnull@localhost>2004-09-23 03:05:40 +0000
commit040d1d02f5b829f59e63123d7095aea7d04e372b (patch)
tree411dc7118f70f069befc0f8f074dd0caaf70373c /src/lib9/fmt/nan64.c
parent709efa017c326a283328704fa82d81a99b639932 (diff)
downloadplan9port-040d1d02f5b829f59e63123d7095aea7d04e372b.tar.gz
plan9port-040d1d02f5b829f59e63123d7095aea7d04e372b.tar.bz2
plan9port-040d1d02f5b829f59e63123d7095aea7d04e372b.zip
Get rid of 64-bit constants.
Diffstat (limited to 'src/lib9/fmt/nan64.c')
-rw-r--r--src/lib9/fmt/nan64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib9/fmt/nan64.c b/src/lib9/fmt/nan64.c
index 4df496cc..dcdcd799 100644
--- a/src/lib9/fmt/nan64.c
+++ b/src/lib9/fmt/nan64.c
@@ -19,9 +19,9 @@ static uvlong uvnan = 0x7FF0000000000001LL;
static uvlong uvinf = 0x7FF0000000000000LL;
static uvlong uvneginf = 0xFFF0000000000000LL;
#else
-static uvlong uvnan = 0x7FF0000000000001;
-static uvlong uvinf = 0x7FF0000000000000;
-static uvlong uvneginf = 0xFFF0000000000000;
+static uvlong uvnan = ((uvlong)0x7FF00000<<32)|0x00000001;
+static uvlong uvinf = ((uvlong)0x7FF00000<<32)|0x00000000;
+static uvlong uvneginf = ((uvlong)0xFFF00000<<32)|0x00000000;
#endif
double