Changeset 1341
- Timestamp:
- 05/06/25 23:08:08 (22 hours ago)
- Location:
- cpp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/util-file.h
r1331 r1341 19 19 bool writeCompleteFile(const char* filename, const span<char>& data, bool warn_on_fail = true); 20 20 bool writeCompleteFile(const char* filename, const span<uint8_t>& data, bool warn_on_fail = true); 21 bool writeCompleteFile(const char* filename, const vector<char>& data, bool warn_on_fail );21 bool writeCompleteFile(const char* filename, const vector<char>& data, bool warn_on_fail = true); 22 22 #ifdef USE_VIRTFILE 23 23 string readUntilEOL(VirtFILE *f); -
cpp/frams/config/version.h
r1318 r1341 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 4Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2025 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 5 #define MAIN_REL_ID "5. 0"6 #define VERSION_INT 2 35 #define MAIN_REL_ID "5.2" 6 #define VERSION_INT 25 7 7 8 8 9 9 #ifdef IPHONE 10 10 // in the "About" window, display both MAIN_REL_ID and the version compatible with Apple's ideas about versioning 11 #define IOS_VERSION "5. 0.7" //for Apple, this can't be arbitrary text (like MAIN_REL_ID could be) as in some other platforms, so let's make it "Framsticks version (disregarding "rc", "beta" etc.)" + dot + "number increased on each release"11 #define IOS_VERSION "5.2" //for Apple, this can't be arbitrary text (like MAIN_REL_ID could be) as in some other platforms, so let's make it "Framsticks version (disregarding "rc", "beta" etc.)" + dot + "number increased on each release" 12 12 #define VERSION_FOR_MOBI_ABOUT IOS_VERSION "<br><small>(Framsticks " MAIN_REL_ID ")</small>" //...but still display the true internal Framsticks version 13 13 #else -
cpp/frams/genetics/fS/fS_general.cpp
r1130 r1341 648 648 vector<Node*> allNodes; 649 649 getAllNodes(allNodes); 650 return allNodes.size();650 return int(allNodes.size()); 651 651 } 652 652 … … 667 667 668 668 std::vector<SString> paramStrings; 669 strSplit(SString(geno.c_str(), modeSeparatorIndex), ',', false, paramStrings);669 strSplit(SString(geno.c_str(), (int)modeSeparatorIndex), ',', false, paramStrings); 670 670 671 671 if(paramStrings.size() >= 1 && paramStrings[0] != "") … … 684 684 } 685 685 686 int genoStart = modeSeparatorIndex+ 1;686 int genoStart = int(modeSeparatorIndex) + 1; 687 687 Substring substring(geno.c_str(), genoStart, int(geno.length()) - genoStart); 688 688 startNode = new Node(substring, nullptr, genotypeParams); … … 879 879 void fS_Genotype::validateNeuroInputs() 880 880 { 881 882 881 // Validate neuro input numbers 883 882 vector<fS_Neuron*> allNeurons = getAllNeurons(); 884 int allNeuronsSize = allNeurons.size();883 size_t allNeuronsSize = allNeurons.size(); 885 884 for(int i=0; i<allNeuronsSize; i++) 886 885 { -
cpp/frams/util/sstringutils.cpp
r1179 r1341 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 2Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2025 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 5 #include <inttypes.h> //PRIu64 5 6 #include "sstringutils.h" 6 7 #include <common/virtfile/virtfile.h> … … 352 353 SString getUIDString(uint64_t uid, char prefix) 353 354 { 354 return SString::sprintf("%c " UINT64_FORMAT, prefix, uid);355 return SString::sprintf("%c%" PRIu64, prefix, uid); 355 356 } 356 357
Note: See TracChangeset
for help on using the changeset viewer.