Changeset 62c7c77e091368d89d5f9699dd6185177dd37f4b

Show
Ignore:
Timestamp:
08/26/10 21:27:02 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
654bb6066f0a41076097ffd2498c04805e4d7276
Parents:
1a490d9fa05ba426833f949deac03729e3e6a8dc
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/26/10 21:27:02)
Message:

[tlate::thread_value] Bugfixes

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tlate/thread_value.cc

    r43f5212 r62c7c77  
    3131 
    3232                tnl.push_back(tn); 
    33                 for (tl::const_iterator it = tnl.begin(); it != tnl.end(); it++) 
     33                for (size_t i = 0; i < tnl.size(); i++) 
    3434                { 
    35                         const tlnc &itch = (*it)->get_children(); 
     35                        const tlnc &itch = tnl[i]->get_children(); 
    3636                        for (tlnc::const_iterator jt  = itch.begin(); 
    3737                             jt != itch.end(); jt++) 
     
    5151                } 
    5252                if (start > 0) tnl.erase(tnl.begin(), tnl.begin()+start); 
    53                 if (length > tnl.size()) 
     53                if (length < tnl.size()) 
    5454                        tnl.erase(tnl.begin()+length, tnl.end()); 
    5555        }