diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 22:52:19 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 23:46:24 +0100 |
commit | 52125014176fd404a596ebae5e5a6117b6fa01d0 (patch) | |
tree | 76c75d93f7912d08d0b3434b008ccf54a0c967b1 /src | |
parent | 93c4dd298f41798cf90437eec740ffd31e729f65 (diff) |
Import fix from CVS: Fix misc. problems on 64-bit platforms.
Diffstat (limited to 'src')
-rw-r--r-- | src/h-config.h | 2 | ||||
-rw-r--r-- | src/xtra1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/h-config.h b/src/h-config.h index d18d0746..bbb6236f 100644 --- a/src/h-config.h +++ b/src/h-config.h @@ -174,7 +174,7 @@ * The only such platform that angband is ported to is currently * DEC Alpha AXP running OSF/1 (OpenVMS uses 32-bit longs). */ -#if defined(__alpha) && defined(__osf__) || defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(__ia64) || defined(__ia64__) || defined(__mips64) || defined(__ppc64__) | defined(__PPC64__) | defined(__powerpc64__) || defined(__64BIT__) || defined(__sparc64__) || defined(__LP64__) +#if defined(__alpha) && defined(__osf__) || defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(__ia64) || defined(__ia64__) || defined(__mips64) || defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || defined(__64BIT__) || defined(__sparc64__) || defined(__LP64__) # define L64 #endif diff --git a/src/xtra1.c b/src/xtra1.c index 88a2f0c7..1a9bb361 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -146,7 +146,7 @@ static void prt_piety(void) c_put_str(TERM_L_WHITE, "Pt ", ROW_PIETY, COL_PIETY); - sprintf(tmp, "%9ld", p_ptr->grace); + sprintf(tmp, "%9ld", (long) p_ptr->grace); c_put_str((p_ptr->praying) ? TERM_L_BLUE : TERM_GREEN, tmp, ROW_PIETY, COL_PIETY + 3); |