~ubuntu-branches/ubuntu/wily/verilator/wily-proposed

« back to all changes in this revision

Viewing changes to src/V3LinkResolve.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2014-06-17 19:59:50 UTC
  • mfrom: (1.2.28)
  • Revision ID: package-import@ubuntu.com-20140617195950-cikhbkjg8x545qdy
Tags: 3.862-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
    void expectFormat(AstNode* nodep, const string& format, AstNode* argp, bool isScan) {
251
251
        // Check display arguments
252
252
        bool inPct = false;
253
 
        for (const char* inp = format.c_str(); *inp; inp++) {
254
 
            char ch = tolower(*inp);   // Breaks with iterators...
 
253
        for (string::const_iterator it = format.begin(); it != format.end(); ++it) {
 
254
            char ch = tolower(*it);
255
255
            if (!inPct && ch=='%') {
256
256
                inPct = true;
257
257
            } else if (inPct) {