# HG changeset patch # User Frits van Bommel # Date 1241778113 -7200 # Node ID c48dcf2e2c026f5b1244a5e02c386bd9c88417df # Parent acc5d68a21d309164b52c99433f34cb3a669062d Fix a bug pointed out by valgrind: OutBuffer::write4() was writing 8 bytes on platforms with 64-bit longs. diff -r acc5d68a21d3 -r c48dcf2e2c02 dmd/root/root.c --- a/dmd/root/root.c Thu May 07 21:49:58 2009 +0200 +++ b/dmd/root/root.c Fri May 08 12:21:53 2009 +0200 @@ -1594,7 +1594,7 @@ void OutBuffer::write4(unsigned w) { reserve(4); - *(unsigned long *)(this->data + offset) = w; + *(unsigned *)(this->data + offset) = w; offset += 4; }