Changeset 1287 for cpp/frams/genetics/genooperators.cpp
- Timestamp:
- 12/06/23 03:32:18 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/genetics/genooperators.cpp ¶
r1254 r1287 350 350 { 351 351 vector<int> allowed; 352 for ( size_t i = 0; i <NClist.size(); i++)352 for (int i = 0; i < (int)NClist.size(); i++) 353 353 if (NClist[i]->getPreferredOutput() != 0) //this NeuroClass provides output 354 354 allowed.push_back(i); … … 359 359 { 360 360 vector<int> allowed; 361 for ( size_t i = 0; i <NClist.size(); i++)361 for (int i = 0; i < (int)NClist.size(); i++) 362 362 if (NClist[i]->getPreferredInputs() != 0) //this NeuroClass wants one input connection or more 363 363 allowed.push_back(i); … … 549 549 int counter[256] = {}; //initialize with zeros; 256 is unnecessarily too big and redundant, but enables very fast access (indexed directly by the ascii code) 550 550 string simplified = ""; 551 for (int i = original.size() - 1; i >= 0; i--) //iterate from end to begin so it is easier to remove "oldest" = first modifiers551 for (int i = int(original.size()) - 1; i >= 0; i--) //iterate from end to begin so it is easier to remove "oldest" = first modifiers 552 552 { 553 553 unsigned char c = original[i];
Note: See TracChangeset
for help on using the changeset viewer.