Changeset 44962


Ignore:
Timestamp:
May 1, 2008, 2:10:56 AM (11 years ago)
Author:
Joel de Guzman
Message:

integer overflow fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/spirit/test/qi/range_run.cpp

    r44492 r44962  
    2929
    3030    boost::mt19937 rng;
    31     boost::uniform_int<> char_(const_min, const_max);
     31    boost::uniform_int<> char_(int(const_min), int(const_max));
    3232    boost::variate_generator<boost::mt19937&, boost::uniform_int<> >
    3333       gen(rng, char_);
     
    3737
    3838    range_run<Char> rr;
    39     boost::dynamic_bitset<> bset(const_max-const_min+1);
     39    boost::dynamic_bitset<> bset(int(const_max)-int(const_min)+1);
    4040
    4141    for (int i = 0; i < test_size; ++i)
Note: See TracChangeset for help on using the changeset viewer.