Skip to content

Commit

Permalink
sources/err_logger.c: fix typo (#721)
Browse files Browse the repository at this point in the history
It's an array of pointers, not plain od_counter_t

Signed-off-by: rkhapov <[email protected]>
Co-authored-by: rkhapov <[email protected]>
  • Loading branch information
rkhapov and rkhapov authored Nov 27, 2024
1 parent 0a704db commit 89c8fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/err_logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <machinarium.h>
#include <odyssey.h>

static size_t err_logger_required_buf_size(int sz)
static size_t err_logger_required_buf_size(size_t sz)
{
return sizeof(od_error_logger_t) + (sz * sizeof(od_counter_t));
return sizeof(od_error_logger_t) + (sz * sizeof(od_counter_t *));
}

od_error_logger_t *od_err_logger_create(size_t intervals_count)
Expand Down

0 comments on commit 89c8fcd

Please sign in to comment.