Berry fix crash in solidify

This commit is contained in:
Stephan Hadinger 2021-11-06 19:23:50 +01:00
parent f2b08bba52
commit 4f4b1f7658
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ static void m_solidify_proto(bvm *vm, bproto *pr, const char * func_name, int bu
logfmt("%*s(be_nested_const_str(\"%s\", %i, %i)),\n", indent, "", str(pr->name), be_strhash(pr->name), str_len(pr->name));
// logfmt("%*s(be_nested_const_str(\"%s\", %i, %i)),\n", indent, "", func_source, be_strhash(pr->source), str_len(pr->source));
// hard-code source as "input" for solidified
logfmt("%*s((bstring*) &be_const_str_input),\n");
logfmt("%*s((bstring*) &be_const_str_input),\n", indent, "");
logfmt("%*s( &(const binstruction[%2d]) { /* code */\n", indent, "", pr->codesize);
for (int pc = 0; pc < pr->codesize; pc++) {