X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCast.c;h=1399fbd8b2ffa2fbcafed208873de860c078ef59;hb=28a737dd5ef9959b63ee66d2f069891649a97c76;hp=5fd567323c44e56ee27c456b757f2b77786108d6;hpb=cd4659a7dfa0f7cafc09f8621fa67a537172348b;p=fw%2Fsdcc diff --git a/src/SDCCast.c b/src/SDCCast.c index 5fd56732..1399fbd8 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -78,7 +78,7 @@ newAst_ (unsigned type) ex = Safe_alloc ( sizeof (ast)); ex->type = type; - ex->lineno = (noLineno ? oldLineno : yylineno); + ex->lineno = (noLineno ? oldLineno : mylineno); ex->filename = currFname; ex->level = NestLevel; ex->block = currBlockno; @@ -4314,7 +4314,7 @@ createFunction (symbol * name, ast * body) addSymChain (name); allocVariables (name); } - name->lastLine = yylineno; + name->lastLine = mylineno; currFunc = name; /* set the stack pointer */