Skip to content

Commit

Permalink
type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans committed Oct 29, 2024
1 parent 2b56915 commit 751e8ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,11 @@ sentry__value_append_ringbuffer(
if (l->len < max + 1) {
return sentry_value_append(value, v);
}
const size_t start_idx = sentry_value_as_int32(l->items[0]);
const int32_t start_idx = sentry_value_as_int32(l->items[0]);

sentry_value_decref(l->items[start_idx]);
l->items[start_idx] = v;
l->items[0] = sentry_value_new_int32((start_idx % max) + 1);
l->items[0] = sentry_value_new_int32((start_idx % (int32_t)max) + 1);

l->len = max + 1;
return 0;
Expand Down

0 comments on commit 751e8ff

Please sign in to comment.