ReVPK: use Min operator provided by basetypes

Use Min() from basetypes as this is the prefered min operator.
This commit is contained in:
Kawe Mazidjatari 2024-11-15 14:02:06 +01:00
parent 20e212b1ea
commit f45ca75474

View File

@ -196,7 +196,7 @@ static void ReVPK_Pack(const CCommand& args)
CPackedStoreBuilder builder;
builder.InitLzEncoder(
argCount > 7 ? (std::min)(atoi(args.Arg(7)), LZHAM_MAX_HELPER_THREADS) : -1, // Num threads.
argCount > 7 ? Min(atoi(args.Arg(7)), LZHAM_MAX_HELPER_THREADS) : -1, // Num threads.
argCount > 8 ? args.Arg(8) : "default"); // Compress level.
builder.PackStore(pair, workspacePath.String(), buildPath.String());