Fixed a compiler warning in script.cpp (#4586)

Fixes #4582

Thanks to @idk-whoami and @aleos89
This commit is contained in:
Lemongrass3110
2020-02-03 14:44:58 +01:00
committed by GitHub
parent a323474433
commit b86926a7a2
3 changed files with 10 additions and 10 deletions

View File

@@ -1692,7 +1692,7 @@ const char* parse_syntax(const char* p)
p = skip_space(p);
if(*p != ':')
disp_error_message("parse_syntax: expect ':'",p);
sprintf(label,"if(%lld != $@__SW%x_VAL) goto __SW%x_%x;",
sprintf(label,"if(%" PRId64 " != $@__SW%x_VAL) goto __SW%x_%x;",
v,syntax.curly[pos].index,syntax.curly[pos].index,syntax.curly[pos].count+1);
syntax.curly[syntax.curly_count++].type = TYPE_NULL;
// Bad I do not parse twice