From 03e206a44fb2fd913a1c92811f32e290ea3beb0e Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 30 Aug 2009 08:36:56 +0000 Subject: [PATCH] Make the SIZEOF_XXX constants resolve to unsigned values. git-svn-id: svn://svn.cc65.org/cc65/trunk@4087 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/datatype.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cc65/datatype.h b/src/cc65/datatype.h index f9dd78313..8f72fa105 100644 --- a/src/cc65/datatype.h +++ b/src/cc65/datatype.h @@ -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)