From 5ee49abd12087c0e6bacaab07dab17bcc8770fef Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 28 Jul 2009 19:29:11 +0000 Subject: [PATCH] Fixed a compatibility problem in TypeCmp: Subtracting pointers with different signedness is not allowed. git-svn-id: svn://svn.cc65.org/cc65/trunk@3979 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/typecmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/typecmp.h b/src/cc65/typecmp.h index 98aebf098..6ccaa3371 100644 --- a/src/cc65/typecmp.h +++ b/src/cc65/typecmp.h @@ -51,9 +51,9 @@ /* Degree of type compatibility. Must be in ascending order */ typedef enum { TC_INCOMPATIBLE, /* Distinct types */ - TC_QUAL_DIFF, /* Types differ in qualifier of pointer */ TC_SIGN_DIFF, /* Signedness differs */ TC_COMPATIBLE = TC_SIGN_DIFF, /* Compatible types */ + TC_QUAL_DIFF, /* Types differ in qualifier of pointer */ TC_STRICT_COMPATIBLE, /* Strict compatibility */ TC_EQUAL, /* Types are equal */ TC_IDENTICAL /* Types are identical */ -- 2.39.5