mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix MSVC compiler warnings
This commit is contained in:
parent
8496af7907
commit
e42e7884bb
1 changed files with 2 additions and 2 deletions
|
@ -1484,7 +1484,7 @@ struct Compiler
|
||||||
{
|
{
|
||||||
std::string formatString;
|
std::string formatString;
|
||||||
|
|
||||||
unsigned int stringsLeft = expr->strings.size;
|
size_t stringsLeft = expr->strings.size;
|
||||||
|
|
||||||
for (AstArray<char> const& string : expr->strings)
|
for (AstArray<char> const& string : expr->strings)
|
||||||
{
|
{
|
||||||
|
@ -1543,7 +1543,7 @@ struct Compiler
|
||||||
|
|
||||||
bytecode.emitABC(LOP_NAMECALL, target, target, uint8_t(BytecodeBuilder::getStringHash(formatMethod)));
|
bytecode.emitABC(LOP_NAMECALL, target, target, uint8_t(BytecodeBuilder::getStringHash(formatMethod)));
|
||||||
bytecode.emitAux(formatMethodIndex);
|
bytecode.emitAux(formatMethodIndex);
|
||||||
bytecode.emitABC(LOP_CALL, target, expr->expressions.size + 2, 2);
|
bytecode.emitABC(LOP_CALL, target, uint8_t(expr->expressions.size + 2), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t encodeHashSize(unsigned int hashSize)
|
static uint8_t encodeHashSize(unsigned int hashSize)
|
||||||
|
|
Loading…
Add table
Reference in a new issue