Changeset 1261 for trunk/yat


Ignore:
Timestamp:
Apr 8, 2008, 4:01:33 PM (13 years ago)
Author:
Peter
Message:

changing some u_int to size_t

Location:
trunk/yat
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/VectorFunction.cc

    r1000 r1261  
    6565 
    6666
    67   Nth_Element::Nth_Element(u_int N)
     67  Nth_Element::Nth_Element(size_t N)
    6868    : N_(N) {}
    6969
  • trunk/yat/statistics/VectorFunction.h

    r1260 r1261  
    2727
    2828#include <vector>
    29 
    30 #include <sys/types.h>
    3129
    3230namespace theplu {
     
    109107    /// efficient)
    110108    ///
    111     Nth_Element(u_int N);
     109    Nth_Element(size_t N);
    112110
    113111    ///
     
    117115
    118116  private:
    119     u_int N_;
     117    size_t N_;
    120118  };
    121119
  • trunk/yat/utility/FileUtil.cc

    r1260 r1261  
    2828
    2929#include <cerrno>
     30#include <cstddef>
    3031#include <iostream>
    3132#include <stdexcept>
     
    3334
    3435#include <sys/stat.h>
    35 #include <sys/types.h>
    3636#include <unistd.h>
    3737
     
    5858    int mode=0;
    5959    bool ok = true;
    60     for (u_int i=0; i<bits.length(); i++)
     60    for (size_t i=0; i<bits.length(); i++)
    6161      switch (bits[i]) {
    6262          case 'r':
Note: See TracChangeset for help on using the changeset viewer.