mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 15:48:47 +00:00
fix issue #15
This commit is contained in:
parent
149984f5c0
commit
b05ad7f6b1
1 changed files with 2 additions and 2 deletions
|
|
@ -689,12 +689,12 @@ extern void* Bstring (void *p) {
|
|||
int n = strlen (p);
|
||||
void *s;
|
||||
|
||||
__pre_gc ();
|
||||
// __pre_gc ();
|
||||
|
||||
s = LmakeString (BOX(n));
|
||||
strncpy (s, p, n + 1);
|
||||
|
||||
__post_gc ();
|
||||
// __post_gc ();
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue