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:
parent
e2e974336a
commit
01fe58047e
5 changed files with 50 additions and 34 deletions
|
@ -73,21 +73,27 @@
|
|||
#pragma warning(disable : 4996)
|
||||
#endif
|
||||
|
||||
typedef double Real64;
|
||||
typedef double Real64;
|
||||
/* The internal types */
|
||||
typedef unsigned char Bit8u;
|
||||
typedef signed char Bit8s;
|
||||
typedef unsigned short Bit16u;
|
||||
typedef signed short Bit16s;
|
||||
typedef unsigned long Bit32u;
|
||||
typedef signed long Bit32s;
|
||||
typedef unsigned __int64 Bit64u;
|
||||
typedef signed __int64 Bit64s;
|
||||
typedef unsigned char Bit8u;
|
||||
typedef signed char Bit8s;
|
||||
typedef unsigned short Bit16u;
|
||||
typedef signed short Bit16s;
|
||||
typedef unsigned int Bit32u;
|
||||
typedef signed int Bit32s;
|
||||
typedef unsigned __int64 Bit64u;
|
||||
typedef signed __int64 Bit64s;
|
||||
#ifdef _M_X64
|
||||
typedef unsigned __int64 Bitu;
|
||||
typedef signed __int64 Bits;
|
||||
typedef Bit64u Bitu;
|
||||
typedef Bit64s Bits;
|
||||
#define sBitud "%I64u"
|
||||
#define sBitux "%I64x"
|
||||
#define sBituX "%I64X"
|
||||
#else // _M_IX86
|
||||
typedef unsigned int Bitu;
|
||||
typedef signed int Bits;
|
||||
typedef Bit32u Bitu;
|
||||
typedef Bit32s Bits;
|
||||
#define sBitud "%u"
|
||||
#define sBitux "%x"
|
||||
#define sBituX "%X"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue