Changeset 1280 for cpp/frams/util


Ignore:
Timestamp:
09/10/23 01:51:57 (16 months ago)
Author:
Maciej Komosinski
Message:

Added explicit type casts (size_t vs. int etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/sstring-simple.cpp

    r1130 r1280  
    7878void SString::endWrite(int newlength)
    7979{
    80         if (newlength < 0) newlength = strlen(txt);
     80        if (newlength < 0) newlength = (int)strlen(txt);
    8181        else
    8282        {
     
    9595void SString::endAppend(int newappend)
    9696{
    97         if (newappend < 0) endWrite(appending + strlen(txt + appending));
     97        if (newappend < 0) endWrite(appending + (int)strlen(txt + appending));
    9898        else endWrite(newappend + appending);
    9999}
     
    104104{
    105105        if (!s) return;
    106         int x = strlen(s);
     106        int x = (int)strlen(s);
    107107        if (!x) return;
    108108        append(s, x);
     
    137137{
    138138        if (!ch) chlen = 0;
    139         else if (chlen < 0) chlen = strlen(ch);
     139        else if (chlen < 0) chlen = (int)strlen(ch);
    140140        if (chlen)
    141141        {
Note: See TracChangeset for help on using the changeset viewer.