From 8bb38fd96ae090dce47ebdfc028a0f79708bcff5 Mon Sep 17 00:00:00 2001 From: Dmytro Vyazelenko <696855+vyazelenko@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:46:26 +0200 Subject: [PATCH] [C] Move cast outside fenced code. --- aeron-driver/src/main/c/aeron_publication_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aeron-driver/src/main/c/aeron_publication_image.c b/aeron-driver/src/main/c/aeron_publication_image.c index a4fc5f64e6..10472e0d1a 100644 --- a/aeron-driver/src/main/c/aeron_publication_image.c +++ b/aeron-driver/src/main/c/aeron_publication_image.c @@ -832,7 +832,7 @@ int aeron_publication_image_send_pending_loss(aeron_publication_image_t *image) { const int32_t term_id = image->loss_term_id; const int32_t term_offset = image->loss_term_offset; - const int32_t length = (int32_t)image->loss_length; + const size_t length = image->loss_length; aeron_acquire(); @@ -859,7 +859,7 @@ int aeron_publication_image_send_pending_loss(aeron_publication_image_t *image) image->session_id, term_id, term_offset, - length); + (int32_t)length); if (send_nak_result < 0) {