Ignore:
Timestamp:
04/09/15 23:51:28 (8 years ago)
Author:
Maciej Komosinski
Message:
  • explicit c_str() in SString instead of (const char*) cast
  • genetic converters and GenMan? are now thread-local which enables multi-threaded simulator separation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/impl/neuroimpl-fuzzy-f0.cpp

    r286 r348  
    2323      break;
    2424    else
    25       numbers[have++]=atof(t);
     25      numbers[have++]=atof(t.c_str());
    2626
    2727  //check if number of read numbers (separated with semicolon) is equal to declared
     
    122122        t += str.charAt(pos++);
    123123      pos++;
    124       rules[j][k]=atol(t); //convert cut out string into number
     124      rules[j][k]=atol(t.c_str()); //convert cut out string into number
    125125      //fuzzy sets - odd index table - are counted from 0,
    126126      //so if 5 fuzzy sets declared, values acceptable are 0,1,2,3,4
Note: See TracChangeset for help on using the changeset viewer.