diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-10 18:00:12 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-10 18:44:07 +0200 |
commit | 50ea7fdc8af5d74a8f1d0e2d730f3b45d2d14d8e (patch) | |
tree | b494d325fad464d7469ca485914c16e85d047af6 /src/h-type.h | |
parent | 882afb262b6c01719b3c26c6b49d5ead50af84db (diff) |
Fix 32-bit warnings
Diffstat (limited to 'src/h-type.h')
-rw-r--r-- | src/h-type.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/h-type.h b/src/h-type.h index 5dbb4975..27551b7f 100644 --- a/src/h-type.h +++ b/src/h-type.h @@ -109,14 +109,20 @@ typedef unsigned long huge; /* Signed/Unsigned 16 bit value */ typedef signed short s16b; typedef unsigned short u16b; +#define FMTs16b "%hd" +#define FMTu16b "%hu" /* Signed/Unsigned 32 bit value */ #ifdef L64 /* 64 bit longs */ typedef signed int s32b; typedef unsigned int u32b; +#define FMTs32b "%d" +#define FMTu32b "%u" #else typedef signed long s32b; typedef unsigned long u32b; +#define FMTs32b "%ld" +#define FMTu32b "%lu" #endif |