summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pkm/arith.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-10-13 06:40:05 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-10-13 06:40:05 +0000
commit114598d40feee6dd9c5de45b0cc7cedefbdedd00 (patch)
treeda3d139f7c74dc58b9bc11fc8d63290dccd35b12 /Build/source/texk/ps2pkm/arith.h
parent79c720fad26a4abca2cf02568777b74ecd68a238 (diff)
texk/ps2pkm: Minor bug fix. Avoid use of LONG (int for Unix but defined as long by MinGW)
git-svn-id: svn://tug.org/texlive/trunk@35365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/arith.h')
-rw-r--r--Build/source/texk/ps2pkm/arith.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/ps2pkm/arith.h b/Build/source/texk/ps2pkm/arith.h
index 9b0d4e063be..834f776dd50 100644
--- a/Build/source/texk/ps2pkm/arith.h
+++ b/Build/source/texk/ps2pkm/arith.h
@@ -34,22 +34,22 @@
#endif
#define SHORTSIZE (sizeof(SHORT)*8)
-#define LONGSIZE (SHORTSIZE*2)
+#define INT32SIZE (SHORTSIZE*2)
#define MAXSHORT ((1<<SHORTSIZE)-1)
/*END SHARED*/
/*SHARED*/
typedef struct {
- LONG high;
- ULONG low;
+ int32_t high;
+ uint32_t low;
} doublelong;
/*END SHARED*/
/*SHARED*/
#define DLrightshift(dl,N) { \
- dl.low = (dl.low >> N) + (((ULONG) dl.high) << (LONGSIZE - N)); \
+ dl.low = (dl.low >> N) + (((uint32_t) dl.high) << (INT32SIZE - N)); \
dl.high >>= N; \
}
@@ -58,8 +58,8 @@ typedef struct {
#include "types.h"
-void DLmult(doublelong *, ULONG, ULONG),
- DLdiv(doublelong *, ULONG),
+void DLmult(doublelong *, uint32_t, uint32_t),
+ DLdiv(doublelong *, uint32_t),
DLadd(doublelong *, doublelong *),
DLsub(doublelong *, doublelong *);