Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sources/err_logger.c: fix typo #721

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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