int -> size_type/std::size_t

This commit is contained in:
Andreas Fabri 2010-06-21 16:44:18 +00:00
parent b1e5acb765
commit cea0252467
2 changed files with 3 additions and 3 deletions

View File

@ -95,8 +95,8 @@ operator()( const char* filename1, const char* filename2 )
std::cout << "segment tree ...... " << std::flush;
timer.reset();
timer.start();
const unsigned int n = boxes1.size();
const unsigned int cutoff = n < 2000 ? 6 : n / 100;
const std::size_t n = boxes1.size();
const std::size_t cutoff = n < 2000 ? 6 : n / 100;
CGAL::box_intersection_custom_predicates_d( boxes1.begin(), boxes1.end(),
boxes2.begin(), boxes2.end(),
callback3,

View File

@ -51,7 +51,7 @@ test_n( unsigned int n, std::ostream& outfile )
typename Uti1::Counter_callback callback1, callback2;
CGAL::Timer timer, timer_scan;
double time, time_scan;
unsigned int problemsize = boxes1.size() + boxes2.size();
std::size_t problemsize = boxes1.size() + boxes2.size();
unsigned int cutoff = 0;
unsigned int stepsize = 500;
double last_time = 1e30;