summaryrefslogtreecommitdiff
path: root/gs/src/ibnum.c
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>1999-05-24 20:03:13 +0000
committerHenry Stiles <henry.stiles@artifex.com>1999-05-24 20:03:13 +0000
commit5e99d00db40250c4aec92e2e7ecaf51f629540ae (patch)
treec59a16131c363a845609bb0786adc205d3f6fddc /gs/src/ibnum.c
parent7ddfba499458819bf0dbf297b084f8b5b51b8690 (diff)
downloadghostpdl-5e99d00db40250c4aec92e2e7ecaf51f629540ae.tar.gz
initial gs5.84 checkin with pcl and xl compiling.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@857 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs/src/ibnum.c')
-rw-r--r--gs/src/ibnum.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gs/src/ibnum.c b/gs/src/ibnum.c
index 0ac388e40..df48606f2 100644
--- a/gs/src/ibnum.c
+++ b/gs/src/ibnum.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1990, 1996, 1998 Aladdin Enterprises. All rights reserved.
+/* Copyright (C) 1990, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
@@ -179,11 +179,11 @@ sdecodelong(const byte * p, int format)
((long)d << 24) + ((long)c << 16) + (b << 8) + a :
((long)a << 24) + ((long)b << 16) + (c << 8) + d);
- /*
- * The following is only needed if sizeof(long) > 4, but it does
- * no harm if sizeof(long) == 4.
- */
- return (v ^ 0x80000000L) - 0x80000000L;
+#if arch_sizeof_long > 4
+ /* Propagate bit 31 as the sign. */
+ v = (v ^ 0x80000000L) - 0x80000000L;
+#endif
+ return v;
}
/* Decode a float. We assume that native floats occupy 32 bits. */