Changeset 1075 for cpp/frams/genetics/fL


Ignore:
Timestamp:
02/16/21 06:36:01 (4 years ago)
Author:
Maciej Komosinski
Message:

Fixed dangerous size_t-1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_oper.cpp

    r1029 r1075  
    421421                        if (list->size() > 1)
    422422                        {
    423                                 int rndid = rndUint(list->size() - 1);
     423                                int rndid = rndUint(int(list->size()) - 1);
    424424                                int j = 0;
    425425                                std::list<fL_Word *>::iterator it = list->begin();
Note: See TracChangeset for help on using the changeset viewer.