This commit is contained in:
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Switched to using `wpMiscUtilsRotl64` in `xorshift`
|
||||
- Remove all uses of names starting with underscore
|
||||
- Ensure `wpArrayClear` memsets members to 0
|
||||
|
||||
## [2.4.0] - 2026-08-30
|
||||
|
||||
|
||||
@@ -214,6 +214,7 @@ void arrayClear(WpArray array, u64 item_size) {
|
||||
|
||||
WpArrayHeader *header = arrayHeader(array);
|
||||
header->count = 0;
|
||||
memset(array, 0, header->capacity * header->item_size);
|
||||
}
|
||||
|
||||
u64 arrayCalcAllocSize(u64 capacity, u64 item_size) {
|
||||
|
||||
Reference in New Issue
Block a user