- Timestamp:
- 04/17/23 00:05:48 (20 months ago)
- Location:
- cpp/frams
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/canvas/neurodiagram.cpp
r1130 r1216 237 237 probe->resizeClient(s); 238 238 updatePlugin(); 239 requestPaint(); 239 requestPaint(); //because client resized 240 240 } 241 241 -
cpp/frams/genetics/f9/f9_oper.cpp
r1167 r1216 34 34 size_t i; 35 35 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; 37 37 } 38 38 … … 85 85 { 86 86 method = 0; 87 int changes = 0, len = strlen(gene);87 int changes = 0, len = (int)strlen(gene); 88 88 89 89 if (mut_prob > 0) … … 123 123 int GenoOper_f9::crossOver(char *&g1, char *&g2, float& chg1, float& chg2) 124 124 { 125 int len1 = strlen(g1), len2 =strlen(g2);125 int len1 = (int)strlen(g1), len2 = (int)strlen(g2); 126 126 int p1 = rndUint(len1); //random cut point for first genotype 127 127 int p2 = rndUint(len2); //random cut point for second genotype -
cpp/frams/param/mutableparam.cpp
r1130 r1216 22 22 }; 23 23 #undef FIELDSTRUCT 24 const int MutableParam::staticprops = std::size(pe_tab);24 const int MutableParam::staticprops = (int)std::size(pe_tab); 25 25 26 26 MutableParam::MutableParam(const char*n, const char*g, int gr0)
Note: See TracChangeset
for help on using the changeset viewer.