Ignore:
Timestamp:
04/09/15 23:51:28 (9 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/model/autoname.cpp

    r343 r348  
    3838        unsigned int s1 = 0, s2 = 0, s3 = 0;
    3939        SString g = model.getGeno().getGene();
    40         const char *x = g;
     40        const char *x = g.c_str();
    4141        for (; *x; x++) { s1 += *x; s2 = s2**x + *x; s3 = (s3^*x) + *x; }
    4242        char* t = buf;
Note: See TracChangeset for help on using the changeset viewer.