Update compiler.cpp

This commit is contained in:
blueloveTH 2024-05-02 18:44:47 +08:00
parent 3082645733
commit 0c3134f5c5

View File

@ -1278,10 +1278,11 @@ __EAT_DOTS_END:
std::string_view version = deserializer.read_string('\n');
if(version != PK_VERSION){
SyntaxError(_S("precompiled version mismatch: ", version, "!=" PK_VERSION));
Str error = _S("precompiled version mismatch: ", version, "!=" PK_VERSION);
throw std::runtime_error(error.c_str());
}
if(deserializer.read_uint('\n') != (i64)mode()){
SyntaxError("precompiled mode mismatch");
throw std::runtime_error("precompiled mode mismatch");
}
int count = deserializer.read_count();