Commit 07b5494c authored by Andreas Schmidt's avatar Andreas Schmidt

Fix assertion.

parent 368c430e
Pipeline #2086 failed with stages
in 22 seconds
......@@ -133,7 +133,7 @@ int main(int argc, char **argv) {
uint32_t j = 0;
uint16_t buffer_size = arguments.size;
char* buf = calloc(buffer_size, sizeof(char));
assert(sizeof(buf) >= 2* sizeof(struct timespec) + 20);
assert(buffer_size * sizeof(char) >= 2* sizeof(struct timespec) + 20);
while (j < rounds) {
struct timespec now;
clock_gettime(CLOCK_REALTIME, &now);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment