Mercurial > projects > ddmd
diff dmd/StringExp.d @ 175:94b6033c07f3
get rid of globals
malloc -> GC.malloc
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:48:06 +0400 |
parents | 14feb7ae01a6 |
children | fa9a71a9f5a8 |
line wrap: on
line diff
--- a/dmd/StringExp.d Sun Oct 10 03:47:23 2010 +0400 +++ b/dmd/StringExp.d Sun Oct 10 03:48:06 2010 +0400 @@ -855,7 +855,7 @@ e.Eoper = OPER.OPstring; static if (true) { // Match MEM_PH_FREE for OPstring in ztc\el.c - e.EV.ss.Vstring = cast(char*)malloc((len + 1) * sz); /// ! + e.EV.ss.Vstring = cast(char*)GC.malloc((len + 1) * sz); /// ! memcpy(e.EV.ss.Vstring, string_, (len + 1) * sz); } else { e.EV.ss.Vstring = cast(char*)string_;