Changeset 1216 for cpp/frams


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

Cosmetic

Location:
cpp/frams
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/canvas/neurodiagram.cpp

    r1130 r1216  
    237237        probe->resizeClient(s);
    238238        updatePlugin();
    239         requestPaint();
     239        requestPaint(); //because client resized
    240240}
    241241
  • 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
  • cpp/frams/param/mutableparam.cpp

    r1130 r1216  
    2222};
    2323#undef FIELDSTRUCT
    24 const int MutableParam::staticprops = std::size(pe_tab);
     24const int MutableParam::staticprops = (int)std::size(pe_tab);
    2525
    2626MutableParam::MutableParam(const char*n, const char*g, int gr0)
Note: See TracChangeset for help on using the changeset viewer.