Changeset 809 for cpp


Ignore:
Timestamp:
06/21/18 02:43:43 (7 years ago)
Author:
Maciej Komosinski
Message:

Fixed a signed/unsigned warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fn/fn_oper.cpp

    r808 r809  
    6262}
    6363
    64 //Creep-mutate one property
     64//Creep-mutate variable(s)
    6565int GenoOper_fn::mutate(char *&gene, float &chg, int &method)
    6666{
     
    8686        else //mutate all variables
    8787        {
    88                 for (int which = 0; which < values.size(); which++)
     88                for (int which = 0; which < (int)values.size(); which++)
    8989                        values[which] = GenoOperators::mutateCreep('f', values[which], bound_low[which], bound_high[which], stddev[which], false);
    9090                chg = 1.0f;
     
    9696}
    9797
    98 ///Averaging crossover
     98//Averaging crossover
    9999int GenoOper_fn::crossOver(char *&g1, char *&g2, float& chg1, float& chg2)
    100100{
     
    128128}
    129129
    130 ///Applying some colors and font styles...
     130//Applying some colors and font styles...
    131131uint32_t GenoOper_fn::style(const char *g, int pos)
    132132{
Note: See TracChangeset for help on using the changeset viewer.