comparison dmd/codegen/linkhelper.d @ 182:b64060ab22df

Now compileable with dmd2.050
author korDen
date Sat, 30 Oct 2010 05:05:32 +0400
parents b7b61140701d
children
comparison
equal deleted inserted replaced
181:aa70dca07cb0 182:b64060ab22df
22 22
23 va_list ap; 23 va_list ap;
24 va_start(ap, format); 24 va_start(ap, format);
25 25
26 char buf[1024]; 26 char buf[1024];
27 vsprintf(buf.ptr, format, ap); 27 int len = vsprintf(buf.ptr, format, ap);
28 va_end( ap ); 28 va_end( ap );
29 29
30 dmd.Util.error(loc, to!string(buf)); 30 dmd.Util.error(loc, buf[0..len].idup);
31 } 31 }
32 } 32 }