Changeset 1299 for cpp/frams/genetics/fL
- Timestamp:
- 03/29/24 23:34:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fL/fL_matheval.cpp
r896 r1299 648 648 if (type == 0) 649 649 { 650 count = operatorstrings.size();650 count = int(operatorstrings.size()); 651 651 } 652 652 else if (type == 2) 653 653 { 654 count = operatorstrings.size() - arithmeticoperatorscount;654 count = int(operatorstrings.size()) - arithmeticoperatorscount; 655 655 } 656 656 randop += rndUint(count); … … 662 662 if (varcount > 0) 663 663 { 664 int currsize = postfixlist.size();664 size_t currsize = postfixlist.size(); 665 665 int varid = rndUint(varcount); 666 666 postfixlist.push_back(vars[varid]); … … 704 704 std::list<Token *>::iterator it = postfixlist.begin(); 705 705 // insertion can be applied from 1st occurrence 706 int insertlocation = 1 + rndUint( postfixlist.size() - 1);706 int insertlocation = 1 + rndUint((int)postfixlist.size() - 1); 707 707 std::advance(it, insertlocation); 708 708 Operator *rndop;
Note: See TracChangeset
for help on using the changeset viewer.