mirror of
https://github.com/cc65/cc65.git
synced 2025-03-21 05:31:08 +00:00
Make the SIZEOF_XXX constants resolve to unsigned values.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4087 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
2ddeb069eb
commit
03e206a44f
@ -165,14 +165,14 @@ struct Type {
|
||||
#define FLEXIBLE 0L /* Flexible array struct member */
|
||||
|
||||
/* Sizes. Floating point sizes come from fp.h */
|
||||
#define SIZEOF_CHAR 1
|
||||
#define SIZEOF_SHORT 2
|
||||
#define SIZEOF_INT 2
|
||||
#define SIZEOF_LONG 4
|
||||
#define SIZEOF_LONGLONG 8
|
||||
#define SIZEOF_CHAR 1U
|
||||
#define SIZEOF_SHORT 2U
|
||||
#define SIZEOF_INT 2U
|
||||
#define SIZEOF_LONG 4U
|
||||
#define SIZEOF_LONGLONG 8U
|
||||
#define SIZEOF_FLOAT (FP_F_Size())
|
||||
#define SIZEOF_DOUBLE (FP_D_Size())
|
||||
#define SIZEOF_PTR 2
|
||||
#define SIZEOF_PTR SIZEOF_INT
|
||||
|
||||
/* Bit sizes */
|
||||
#define CHAR_BITS (8 * SIZEOF_CHAR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user