- Timestamp:
- 12/06/23 03:32:18 (12 months ago)
- Location:
- cpp/frams/genetics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/f9_conv.cpp
r1280 r1287 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 1Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 92 92 int GenoConv_f90::findVertexAt(vector<XYZ_LOC> &vertices, const XYZ_LOC &vertex) 93 93 { 94 for (int i = 0; i < vertices.size(); i++)94 for (int i = 0; i < (int)vertices.size(); i++) 95 95 if (vertices[i].same_coordinates(vertex)) return i; 96 96 return -1; -
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.