Browse Source

add parenthesis to max

pull/4561/head
DakkJaniels 4 years ago committed by Anders Jenbo
parent
commit
1d4f91c9e1
  1. 2
      Source/capture.cpp

2
Source/capture.cpp

@ -131,7 +131,7 @@ bool CapturePix(const Surface &buf, std::ofstream *out)
std::ofstream CaptureFile(std::string *dstPath)
{
char filename[sizeof("screen0000000000.PCX") / sizeof(char)];
for (uint32_t i = 0; i <= (uint32_t)std::numeric_limits<uint32_t>::max; ++i) {
for (uint32_t i = 0; i <= std::numeric_limits<uint32_t>::max(); ++i) {
snprintf(filename, sizeof(filename) / sizeof(char), "screen%d.PCX", i);
*dstPath = paths::PrefPath() + filename;
if (!FileExists(dstPath->c_str())) {

Loading…
Cancel
Save