mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-06 15:03:13 +01:00
Fix a bug pointed out by valgrind: OutBuffer::write4() was writing 8 bytes on
platforms with 64-bit longs.
This commit is contained in:
@@ -1594,7 +1594,7 @@ void OutBuffer::writeUTF16(unsigned w)
|
||||
void OutBuffer::write4(unsigned w)
|
||||
{
|
||||
reserve(4);
|
||||
*(unsigned long *)(this->data + offset) = w;
|
||||
*(unsigned *)(this->data + offset) = w;
|
||||
offset += 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user