1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Use constexpr on openrct2/*

This commit is contained in:
Tulio Leao
2019-10-23 22:37:34 -03:00
parent e9bcad193a
commit 9123b597a9
9 changed files with 60 additions and 67 deletions

View File

@@ -533,8 +533,8 @@ uint32_t util_rand()
return _prng();
}
#define CHUNK (128 * 1024)
#define MAX_ZLIB_REALLOC (4 * 1024 * 1024)
constexpr size_t CHUNK = 128 * 1024;
constexpr int32_t MAX_ZLIB_REALLOC = 4 * 1024 * 1024;
/**
* @brief Inflates zlib-compressed data