1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix sorting and missed floor() usage

This commit is contained in:
Michał Janiszewski
2018-03-18 22:40:46 +01:00
committed by Michał Janiszewski
parent d4cfad8ab2
commit f1ab13f56e
2 changed files with 2 additions and 2 deletions

View File

@@ -615,7 +615,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc)
}
sint32 maxIndex = (sint32)spriteFileHeader.num_entries;
sint32 numbers = (sint32)floor(std::log(maxIndex));
sint32 numbers = (sint32)std::floor(std::log(maxIndex));
size_t pathLen = strlen(outputPath);
if (pathLen >= (size_t)(MAX_PATH - numbers - 5)) {

View File

@@ -15,8 +15,8 @@
#pragma endregion
#include <algorithm>
#include <cstdio>
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>