Changeset 1341


Ignore:
Timestamp:
05/06/25 23:08:08 (22 hours ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Location:
cpp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/util-file.h

    r1331 r1341  
    1919bool writeCompleteFile(const char* filename, const span<char>& data, bool warn_on_fail = true);
    2020bool 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);
     21bool writeCompleteFile(const char* filename, const vector<char>& data, bool warn_on_fail = true);
    2222#ifdef USE_VIRTFILE
    2323string readUntilEOL(VirtFILE *f);
  • cpp/frams/config/version.h

    r1318 r1341  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2024  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2025  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
    5 #define MAIN_REL_ID "5.0"
    6 #define VERSION_INT 23
     5#define MAIN_REL_ID "5.2"
     6#define VERSION_INT 25
    77
    88
    99#ifdef IPHONE
    1010        // 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"
    1212        #define VERSION_FOR_MOBI_ABOUT IOS_VERSION "<br><small>(Framsticks " MAIN_REL_ID ")</small>" //...but still display the true internal Framsticks version
    1313#else
  • cpp/frams/genetics/fS/fS_general.cpp

    r1130 r1341  
    648648        vector<Node*> allNodes;
    649649        getAllNodes(allNodes);
    650         return allNodes.size();
     650        return int(allNodes.size());
    651651}
    652652
     
    667667
    668668                std::vector<SString> paramStrings;
    669                 strSplit(SString(geno.c_str(), modeSeparatorIndex), ',', false, paramStrings);
     669                strSplit(SString(geno.c_str(), (int)modeSeparatorIndex), ',', false, paramStrings);
    670670
    671671                if(paramStrings.size() >= 1 && paramStrings[0] != "")
     
    684684                }
    685685
    686                 int genoStart = modeSeparatorIndex + 1;
     686                int genoStart = int(modeSeparatorIndex) + 1;
    687687                Substring substring(geno.c_str(), genoStart, int(geno.length()) - genoStart);
    688688                startNode = new Node(substring, nullptr, genotypeParams);
     
    879879void fS_Genotype::validateNeuroInputs()
    880880{
    881 
    882881        // Validate neuro input numbers
    883882        vector<fS_Neuron*> allNeurons = getAllNeurons();
    884         int allNeuronsSize = allNeurons.size();
     883        size_t allNeuronsSize = allNeurons.size();
    885884        for(int i=0; i<allNeuronsSize; i++)
    886885        {
  • cpp/frams/util/sstringutils.cpp

    r1179 r1341  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2022  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2025  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     5#include <inttypes.h> //PRIu64
    56#include "sstringutils.h"
    67#include <common/virtfile/virtfile.h>
     
    352353SString getUIDString(uint64_t uid, char prefix)
    353354{
    354         return SString::sprintf("%c" UINT64_FORMAT, prefix, uid);
     355        return SString::sprintf("%c%" PRIu64, prefix, uid);
    355356}
    356357
Note: See TracChangeset for help on using the changeset viewer.