mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix a bug with tmp strings/free
This commit is contained in:
parent
53a10eb312
commit
bc3e29e77b
@ -100,7 +100,9 @@ string _STR_TMP(const char *fmt, ...) {
|
|||||||
//puts('_STR_TMP:');
|
//puts('_STR_TMP:');
|
||||||
//puts(g_str_buf);
|
//puts(g_str_buf);
|
||||||
#endif
|
#endif
|
||||||
return tos(g_str_buf, len);
|
string res = tos(g_str_buf, len);
|
||||||
|
res.is_lit = true;
|
||||||
|
return res;
|
||||||
} // endof _STR_TMP
|
} // endof _STR_TMP
|
||||||
|
|
||||||
")
|
")
|
||||||
|
Loading…
Reference in New Issue
Block a user