From d7234541e29fa424d63c866868062dede4a181d6 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 2 May 2004 19:17:10 +0000 Subject: [PATCH] Fixed compiler warnings git-svn-id: svn://svn.cc65.org/cc65/trunk@3006 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptadd.c | 5 +++-- src/cc65/coptstop.c | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/cc65/coptadd.c b/src/cc65/coptadd.c index 76f697d79..d490574d9 100644 --- a/src/cc65/coptadd.c +++ b/src/cc65/coptadd.c @@ -33,7 +33,8 @@ -#include +/* 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)) { diff --git a/src/cc65/coptstop.c b/src/cc65/coptstop.c index 600826199..d92e9eb5e 100644 --- a/src/cc65/coptstop.c +++ b/src/cc65/coptstop.c @@ -34,7 +34,9 @@ #include -#include + +/* 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; -- 2.39.2