COIN-OR::LEMON - Graph Library

Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/radix_sort.h


Ignore:
Timestamp:
03/02/07 19:04:28 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
Message:

Hard Warning checking

  • based on the remark of the ZIB user
  • we do not use -Winline
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/radix_sort.h

    r2084 r2386  
    265265                       int byte, Functor functor) {
    266266    const int size =
    267       (unsigned int)std::numeric_limits<unsigned char>::max() + 1;
     267      unsigned(std::numeric_limits<unsigned char>::max()) + 1;
    268268    std::vector<int> counter(size);
    269269    for (int i = 0; i < size; ++i) {
     
    291291                             int byte, Functor functor) {
    292292    const int size =
    293       (unsigned int)std::numeric_limits<unsigned char>::max() + 1;
     293      unsigned(std::numeric_limits<unsigned char>::max()) + 1;
    294294    std::vector<int> counter(size);
    295295    for (int i = 0; i < size; ++i) {
     
    331331      bool dir = true;
    332332      std::copy(first, last, buffer);
    333       for (int i = 0; i < (int)sizeof(Value) - 1; ++i) {
     333      for (int i = 0; i < int(sizeof(Value)) - 1; ++i) {
    334334        if (dir) {
    335335          counterIntroSort(buffer, buffer + length, buffer + length,
     
    369369      bool dir = true;
    370370      std::copy(first, last, buffer);
    371       for (int i = 0; i < (int)sizeof(Value); ++i) {
     371      for (int i = 0; i < int(sizeof(Value)); ++i) {
    372372        if (dir) {
    373373          counterIntroSort(buffer, buffer + length,
Note: See TracChangeset for help on using the changeset viewer.