1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Fixed compiler warnings

git-svn-id: svn://svn.cc65.org/cc65/trunk@3006 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-05-02 19:17:10 +00:00
parent fe9c53730c
commit d7234541e2
2 changed files with 8 additions and 5 deletions

View File

@ -33,7 +33,8 @@
#include <ctype.h>
/* common */
#include "chartype.h"
/* cc65 */
#include "codeent.h"
@ -393,7 +394,7 @@ unsigned OptAdd4 (CodeSeg* S)
/* Check for the sequence */
if (E->OPC == OP65_JSR &&
strncmp (E->Arg, "incax", 5) == 0 &&
isdigit (E->Arg[5]) &&
IsDigit (E->Arg[5]) &&
E->Arg[6] == '\0' &&
!RegXUsed (S, I+1)) {

View File

@ -34,7 +34,9 @@
#include <stdlib.h>
#include <ctype.h>
/* common */
#include "chartype.h"
/* cc65 */
#include "codeent.h"
@ -334,12 +336,12 @@ static int IsRegVar (StackOpData* D)
P->OPC == OP65_LDX &&
P->AM == AM65_ZP &&
strncmp (P->Arg, "regbank+", 7) == 0 &&
isdigit (P->Arg[8]) &&
IsDigit (P->Arg[8]) &&
(P = CS_GetEntry (D->Code, D->PushIndex-2)) != 0 &&
P->OPC == OP65_LDA &&
P->AM == AM65_ZP &&
strncmp (P->Arg, "regbank+", 7) == 0 &&
isdigit (P->Arg[8])) {
IsDigit (P->Arg[8])) {
/* Ok, it loads the register variable */
D->ZPHi = D->PrevEntry->Arg;
D->ZPLo = P->Arg;