1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-30 20:29:25 +00:00

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
This commit is contained in:
uz 2009-07-28 19:29:11 +00:00
parent fb9c097981
commit 5ee49abd12

View File

@ -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 */