diff dmd/OutBuffer.d @ 12:832f71e6f96c

*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete) Some unittest-specific functions implemented
author korDen
date Mon, 12 Apr 2010 15:13:00 +0400
parents 63623152e82a
children 544b922227c7
line wrap: on
line diff
--- a/dmd/OutBuffer.d	Wed Mar 31 16:29:36 2010 +0400
+++ b/dmd/OutBuffer.d	Mon Apr 12 15:13:00 2010 +0400
@@ -195,7 +195,9 @@
 	
     final void write4(uint w)
 	{
-		assert(false);
+		reserve(4);
+		*cast(uint*)(this.data + offset) = w;
+		offset += 4;
 	}
 	
     final void write(OutBuffer buf)