From: uz Date: Tue, 28 Jul 2009 19:29:11 +0000 (+0000) Subject: Fixed a compatibility problem in TypeCmp: Subtracting pointers with different X-Git-Tag: V2.13.0rc1~276 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ee49abd12087c0e6bacaab07dab17bcc8770fef;p=cc65 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 --- 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 */