COIN-OR::LEMON - Graph Library

Changeset 1328:d51126dc39fa in lemon for lemon/random.h


Ignore:
Timestamp:
04/02/15 13:36:16 (5 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
1329:6516d9833517, 1331:043a787c3cee
Phase:
public
Message:

Resolve MSVC conversion warnings C4244 (#519)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r631 r1328  
    200200        initState(init);
    201201
    202         num = length > end - begin ? length : end - begin;
     202        num = static_cast<int>(length > end - begin ? length : end - begin);
    203203        while (num--) {
    204204          curr[0] = (curr[0] ^ ((curr[1] ^ (curr[1] >> (bits - 2))) * mul1))
     
    214214        }
    215215
    216         num = length - 1; cnt = length - (curr - state) - 1;
     216        num = length - 1; cnt = static_cast<int>(length - (curr - state) - 1);
    217217        while (num--) {
    218218          curr[0] = (curr[0] ^ ((curr[1] ^ (curr[1] >> (bits - 2))) * mul2))
Note: See TracChangeset for help on using the changeset viewer.