Changeset 1108
- Timestamp:
- 03/15/21 15:57:32 (4 years ago)
- Location:
- cpp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_stl.h
r1027 r1108 48 48 49 49 //final and no longer needed version ;-) (c++17) 50 #define ARRAY_LENGTH(x) std::size(x)50 #define ARRAY_LENGTH(x) int(std::size(x)) 51 51 52 52 -
cpp/frams/genetics/f4/f4_general.cpp
r973 r1108 1388 1388 else // ran out 1389 1389 { 1390 node1 = new f4_node(">", par, strlen(genot) - 1);1390 node1 = new f4_node(">", par, int(strlen(genot)) - 1); 1391 1391 par = node1; 1392 1392 } … … 1427 1427 else // ran out 1428 1428 { 1429 node1 = new f4_node(">", par, strlen(genot) - 1);1429 node1 = new f4_node(">", par, int(strlen(genot)) - 1); 1430 1430 } 1431 1431 return 0; // OK … … 1566 1566 if (par->name != ">") 1567 1567 { 1568 node1 = new f4_node('>', par, strlen(genot) - 1);1568 node1 = new f4_node('>', par, int(strlen(genot)) - 1); 1569 1569 par = node1; 1570 1570 } -
cpp/frams/genetics/f4/f4_oper.cpp
r999 r1108 186 186 if (g->ordNode(i) == n3) 187 187 { 188 neuronid = neulist.size() - 1;188 neuronid = int(neulist.size()) - 1; 189 189 } 190 190 } … … 236 236 if (gcur == par) 237 237 { 238 neuronid = neulist.size() - 1;238 neuronid = int(neulist.size()) - 1; 239 239 } 240 240 } … … 395 395 if (gcur == n1) 396 396 { 397 neuronid = neulist.size() - 1;397 neuronid = int(neulist.size()) - 1; 398 398 } 399 399 } -
cpp/frams/genetics/f9/f9_conv.cpp
r1039 r1108 107 107 108 108 vertices.push_back(new_vertex); 109 return vertices.size() - 1;109 return int(vertices.size()) - 1; 110 110 } 111 111 -
cpp/frams/genetics/fS/fS_general.cpp
r1056 r1108 684 684 685 685 int genoStart = modeSeparatorIndex + 1; 686 Substring substring(geno.c_str(), genoStart, geno.length() - genoStart);686 Substring substring(geno.c_str(), genoStart, int(geno.length()) - genoStart); 687 687 startNode = new Node(substring, nullptr, genotypeParams); 688 688 validateNeuroInputs(); … … 853 853 { 854 854 vector<Node*> allNodes = getAllNodes(); 855 return allNodes[fromIndex + rndUint( allNodes.size() - fromIndex)];855 return allNodes[fromIndex + rndUint(int(allNodes.size()) - fromIndex)]; 856 856 } 857 857
Note: See TracChangeset
for help on using the changeset viewer.