Ticket #3440: t3440_fix_compiler_warning.patch

File t3440_fix_compiler_warning.patch, 840 bytes (added by elexis, 9 years ago)

Fix a compiler warning, fileSize is u64.

  • source/ps/VisualReplay.cpp

    inline int getReplayDuration(std::istrea  
    127127        if (debugParser)
    128128            debug_printf("At position %i of %lu after %i lines reads.\n", currentPosition, fileSize, linesRead);
    129129
    130130        if (!replayStream->good())
    131131        {
    132             LOGERROR("Read error when determining replay duration at %i of %lu in %s", currentPosition - 2, fileSize, fileName.c_str());
     132            LOGERROR("Read error when determining replay duration at %i of %llu in %s", currentPosition - 2, fileSize, fileName.c_str());
    133133            return -1;
    134134        }
    135135
    136136        // Found last turn, compute duration.
    137137        if ((u64) currentPosition + 4 < fileSize && (*replayStream >> type).good() && type == "turn")