Browse Source

Bugfix: Ensure that we fill the buffer with zeros when aligning

This ensures that the binary representation remains consistent
Jorrit Rouwe 1 year ago
parent
commit
23bfbbdb3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jolt/Core/ByteBuffer.h

+ 1 - 1
Jolt/Core/ByteBuffer.h

@@ -23,7 +23,7 @@ public:
 
 
 		// Calculate new size and resize buffer
 		// Calculate new size and resize buffer
 		size_t s = AlignUp(size(), inSize);
 		size_t s = AlignUp(size(), inSize);
-		resize(s);
+		resize(s, 0);
 
 
 		return s;
 		return s;
 	}
 	}