Ignore:
Timestamp:
09/10/23 01:51:57 (14 months ago)
Author:
Maciej Komosinski
Message:

Added explicit type casts (size_t vs. int etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fF/fF_oper.cpp

    r1130 r1280  
    4949        par.load(gene);
    5050        static const int propsToMutate[] = fF_PROPS_TO_MUTATE;
    51         int which = rndUint(std::size(propsToMutate));
     51        int which = rndUint((unsigned int)std::size(propsToMutate));
    5252        bool mutated_ok = GenoOperators::mutatePropertyNaive(par.param, propsToMutate[which]);
    5353        if (mutated_ok)
Note: See TracChangeset for help on using the changeset viewer.