Ignore:
Timestamp:
04/17/23 00:05:48 (19 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f9/f9_oper.cpp

    r1167 r1216  
    3434        size_t i;
    3535        for (i = 0; i < strlen(gene); i++) if (!strchr(turtle_commands_f9, gene[i])) { ok = false; break; }
    36         return ok ? GENOPER_OK : i + 1;
     36        return ok ? GENOPER_OK : int(i) + 1;
    3737}
    3838
     
    8585{
    8686        method = 0;
    87         int changes = 0, len = strlen(gene);
     87        int changes = 0, len = (int)strlen(gene);
    8888
    8989        if (mut_prob > 0)
     
    123123int GenoOper_f9::crossOver(char *&g1, char *&g2, float& chg1, float& chg2)
    124124{
    125         int len1 = strlen(g1), len2 = strlen(g2);
     125        int len1 = (int)strlen(g1), len2 = (int)strlen(g2);
    126126        int p1 = rndUint(len1);  //random cut point for first genotype
    127127        int p2 = rndUint(len2);  //random cut point for second genotype
Note: See TracChangeset for help on using the changeset viewer.