fix prior
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 29s
Build system / Build (pull_request) Successful in 9m23s

This commit is contained in:
2025-03-07 00:47:33 +02:00
parent 3eec89f19b
commit ba89f09afe

View File

@@ -27,14 +27,14 @@ struct collection_int
:void collection_int::add(dword _in) { :void collection_int::add(dword _in) {
unsigned i; unsigned i;
if (!buf) { if (!buf) {
if (buf_size) notify("'buf_size on empty buf' -A"); //if (buf_size) notify("'buf_size on empty buf' -A");
buf_size = 4096 * 5; buf_size = 4096 * 5;
buf = malloc(4096 * 5); buf = malloc(4096 * 5);
if (!buf) notify("'malloc error' -E"); //if (!buf) notify("'malloc error' -E");
} else if (count + 1 * DWSIZE4 >= buf_size) { } else if (count + 1 * DWSIZE4 >= buf_size) {
buf_size += 4096 * 5; buf_size += 4096 * 5;
buf = realloc(buf, buf_size); buf = realloc(buf, buf_size);
if (!buf) notify("'realloc error' -E"); //if (!buf) notify("'realloc error' -E");
} }
i = count * DWSIZE4 + buf; i = count * DWSIZE4 + buf;
ESDWORD[i] = _in; ESDWORD[i] = _in;