Ignore:
Timestamp:
03/29/24 23:34:00 (5 weeks ago)
Author:
Maciej Komosinski
Message:

More reasonable usage of size_t, int, and unsigned int, and their conversions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fH/fH_general.cpp

    r1261 r1299  
    352352        }
    353353
    354         unsigned int stickscount = children->size() + 1;
     354        size_t stickscount = children->size() + 1;
    355355
    356356        MultiRange ranges;
     
    469469        // next stick is selected by minimum distance between first vector of its handle
    470470        // and second vector of any existing StickHandle in body
    471         int remaining = sticks.size() - 2;
     471        int remaining = int(sticks.size()) - 2;
    472472        while (remaining > 0)
    473473        {
     
    880880int fH_Builder::removeNeuronsWithInvalidClasses()
    881881{
    882         int count = neurons.size();
     882        int count = (int)neurons.size();
    883883        if (count == 0)
    884884        {
     
    913913
    914914        }
    915         return count - neurons.size();
     915        return count - (int)neurons.size();
    916916}
    917917
Note: See TracChangeset for help on using the changeset viewer.