1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-09 06:29:38 +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:
uz 2009-08-30 08:36:56 +00:00
parent 2ddeb069eb
commit 03e206a44f

View File

@ -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)