Changeset 1280 for cpp/frams/genetics
- Timestamp:
- 09/10/23 01:51:57 (15 months ago)
- Location:
- cpp/frams/genetics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/f9_conv.cpp
r1157 r1280 92 92 int GenoConv_f90::findVertexAt(vector<XYZ_LOC> &vertices, const XYZ_LOC &vertex) 93 93 { 94 for ( size_t i = 0; i < vertices.size(); i++)94 for (int i = 0; i < vertices.size(); i++) 95 95 if (vertices[i].same_coordinates(vertex)) return i; 96 96 return -1; -
cpp/frams/genetics/fF/fF_oper.cpp
r1130 r1280 49 49 par.load(gene); 50 50 static const int propsToMutate[] = fF_PROPS_TO_MUTATE; 51 int which = rndUint( std::size(propsToMutate));51 int which = rndUint((unsigned int)std::size(propsToMutate)); 52 52 bool mutated_ok = GenoOperators::mutatePropertyNaive(par.param, propsToMutate[which]); 53 53 if (mutated_ok) -
cpp/frams/genetics/fL/fL_general.cpp
r1273 r1280 555 555 //branch->processDefinition(this); 556 556 557 builtincount = words.size();557 builtincount = (int)words.size(); 558 558 } 559 559 … … 1383 1383 int fL_Builder::countDefinedWords() 1384 1384 { 1385 return words.size() - builtincount;1385 return (int)words.size() - builtincount; 1386 1386 } 1387 1387 1388 1388 int fL_Builder::countWordsInLSystem() 1389 1389 { 1390 int count = genotype.size();1390 size_t count = genotype.size(); 1391 1391 for (fL_Rule *rul : rules) 1392 1392 { … … 1394 1394 } 1395 1395 count += words.size(); 1396 return count;1396 return int(count); 1397 1397 } 1398 1398
Note: See TracChangeset
for help on using the changeset viewer.