]> git.sur5r.net Git - cc65/commitdiff
Fixed a compatibility problem in TypeCmp: Subtracting pointers with different
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 28 Jul 2009 19:29:11 +0000 (19:29 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 28 Jul 2009 19:29:11 +0000 (19:29 +0000)
signedness is not allowed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3979 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/typecmp.h

index 98aebf098a11ee0df7d158f77b8e4cbff0645f3a..6ccaa33713fe9a8c1dfc8d7716b78767afa987b0 100644 (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 */