Ignore:
Timestamp:
Oct 26, 2007, 11:49:55 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Removing potential signed/unsigned clash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/vector_test.cc

    r885 r988  
    5858
    5959  utility::vector vec(12);
    60   for (unsigned int i=0; i<vec.size(); i++)
     60  for (size_t i=0; i<vec.size(); i++)
    6161    vec(i)=i;
    6262
     
    7171  *message << "view" << std::endl;
    7272  sum_before=0;
    73   for (unsigned int i=0; i<vec.size(); i+=2)
     73  for (size_t i=0; i<vec.size(); i+=2)
    7474    sum_before+=vec[i];
    7575  utility::vector vec_view(vec,0,6,2);
     
    163163      this_ok=false;
    164164    else
    165       for (unsigned int i=0; i<vec.size(); ++i)
     165      for (size_t i=0; i<vec.size(); ++i)
    166166        if (vec(i)!=vec2(i))
    167167          this_ok=false;
Note: See TracChangeset for help on using the changeset viewer.