]> git.sur5r.net Git - cc65/blobdiff - src/cc65/coptneg.c
In case of parse errors for structs, don't just set the type of the result to
[cc65] / src / cc65 / coptneg.c
index 86394d9a18f30565f8698e7fbed5cb0a82af9db7..058b1ccba204856ffc95bf34d8c3b0e25958af5f 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2001-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2001-2005, Ullrich von Bassewitz                                      */
+/*                Römerstrasse 52                                            */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -239,7 +239,7 @@ unsigned OptNegAX2 (CodeSeg* S)
 
        /* Check for the sequence */
        if (L[0]->OPC == OP65_LDY               &&
-           CE_KnownImm (L[0])                  &&
+           CE_IsConstImm (L[0])                &&
            !CS_RangeHasLabel (S, I+1, 3)       &&
                    CS_GetEntries (S, L+1, I+1, 3)      &&
            CE_IsCallTo (L[1], "ldaxysp")       &&