X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fca65%2Fexpr.c;h=497a6143abbece80766303dd70af328eb520dd0f;hb=46209118b1a77d2e57f28026b1e5916c2c074778;hp=f6b4125477107df62223b3e8ddce84bcf1aa6e58;hpb=a5d8a5a94f4750fd3f32d98fb718fab161b83e9d;p=cc65 diff --git a/src/ca65/expr.c b/src/ca65/expr.c index f6b412547..497a6143a 100644 --- a/src/ca65/expr.c +++ b/src/ca65/expr.c @@ -38,6 +38,7 @@ /* common */ #include "check.h" #include "exprdefs.h" +#include "print.h" #include "tgttrans.h" #include "xmalloc.h" @@ -359,7 +360,7 @@ static int FuncStrAt (void) Index = ConstExpression (); /* Must be a valid index */ - if (Index >= strlen (Str)) { + if (Index >= (long) strlen (Str)) { Error (ERR_RANGE); return 0; } @@ -1036,7 +1037,7 @@ int IsConstExpr (ExprNode* Root) case EXPR_SYMBOL: Sym = Root->V.Sym; if (SymHasUserMark (Sym)) { - if (Verbose) { + if (Verbosity > 0) { DumpExpr (Root); } PError (GetSymPos (Sym), ERR_CIRCULAR_REFERENCE); @@ -1311,7 +1312,7 @@ static ExprNode* RemoveSyms (ExprNode* Expr, int MustClone) SymEntry* Sym = Expr->V.Sym; if (SymHasUserMark (Sym)) { /* Circular definition */ - if (Verbose) { + if (Verbosity) { DumpExpr (Expr); } PError (GetSymPos (Sym), ERR_CIRCULAR_REFERENCE);