Changeset 1280 for cpp/frams/genetics/fL


Ignore:
Timestamp:
09/10/23 01:51:57 (16 months ago)
Author:
Maciej Komosinski
Message:

Added explicit type casts (size_t vs. int etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_general.cpp

    r1273 r1280  
    555555        //branch->processDefinition(this);
    556556
    557         builtincount = words.size();
     557        builtincount = (int)words.size();
    558558}
    559559
     
    13831383int fL_Builder::countDefinedWords()
    13841384{
    1385         return words.size() - builtincount;
     1385        return (int)words.size() - builtincount;
    13861386}
    13871387
    13881388int fL_Builder::countWordsInLSystem()
    13891389{
    1390         int count = genotype.size();
     1390        size_t count = genotype.size();
    13911391        for (fL_Rule *rul : rules)
    13921392        {
     
    13941394        }
    13951395        count += words.size();
    1396         return count;
     1396        return int(count);
    13971397}
    13981398
Note: See TracChangeset for help on using the changeset viewer.