1
0
Fork 0

Try to solve the Bitu formatting warning on all supported platforms (both 32 and 64 bit). Did a few places. Still a lot to go. Changed default display of Bitu to be unsigned instead of signed.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4291
This commit is contained in:
Peter Veenstra 2019-11-18 21:08:57 +00:00
parent e2e974336a
commit 01fe58047e
5 changed files with 50 additions and 34 deletions

View file

@ -388,11 +388,21 @@ typedef double Real64;
#endif
#if SIZEOF_INT_P == 4
typedef Bit32u Bitu;
typedef Bit32s Bits;
#else
typedef Bit64u Bitu;
typedef Bit64s Bits;
typedef Bit32u Bitu;
typedef Bit32s Bits;
#define sBitud "%u"
#define sBitux "%x"
#define sBituX "%X"
#else //SIZEOF_INT_P
typedef Bit64u Bitu;
typedef Bit64s Bits;
#define sBitud "%lu"
#define sBitux "%lx"
#define sBituX "%lX"
#endif
])