- Timestamp:
- 04/07/23 18:39:27 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/f4_general.cpp
r1108 r1213 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 1355 1355 { 1356 1356 int i, j, res, t; 1357 char tc1, tc2, tc3 ; // tc3 is only to ensure that neuron parameter definition is completed1357 char tc1, tc2, tc3[2]; // tc3 is only to ensure that neuron parameter definition is completed 1358 1358 int relfrom; 1359 1359 double w; … … 1485 1485 } 1486 1486 // if there is a colon determining neuron parameter, then let the switch case colon handle this 1487 else if (sscanf(genot + gpos + 1, ":%c%c% [:]", &tc1, &tc2, &tc3) == 3)1487 else if (sscanf(genot + gpos + 1, ":%c%c%1[:]", &tc1, &tc2, &tc3) == 3) 1488 1488 { 1489 1489 node1 = new f4_node(genot[gpos], par, gpos); … … 1506 1506 { 1507 1507 // neuron parameter +! -! += -= +/ or -/ 1508 if (sscanf(genot + gpos, ":%c%c% [:]", &tc1, &tc2, &tc3) != 3)1508 if (sscanf(genot + gpos, ":%c%c%1[:]", &tc1, &tc2, &tc3) != 3) 1509 1509 // error: incorrect format 1510 1510 return gpos + 1 + 1;
Note: See TracChangeset
for help on using the changeset viewer.