fix a compiler error

This commit is contained in:
blueloveTH 2023-09-28 04:23:56 +08:00
parent 0a55ce9f12
commit a19a6b349b

View File

@ -289,7 +289,7 @@ static bool is_unicode_Lo_char(uint32_t c) {
PK_ASSERT(base == 10); PK_ASSERT(base == 10);
add_token(TK("@num"), Number::stof(m[0], &size)); add_token(TK("@num"), Number::stof(m[0], &size));
} else { } else {
add_token(TK("@num"), std::stoll(m[0], &size, base)); add_token(TK("@num"), (i64)std::stoll(m[0], &size, base));
} }
PK_ASSERT((int)size == (int)m.length()); PK_ASSERT((int)size == (int)m.length());
}catch(...){ }catch(...){