From 8b3dc8387b1218ac50fa0dff0db47d7367743453 Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Fri, 12 Sep 2025 16:45:52 +0800 Subject: [PATCH] context : remove redundant explicit casting to the same type The function 'output_reserve' return type is 'uint32_t', so need to add explicit casting. --- src/llama-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-context.cpp b/src/llama-context.cpp index 3e163001c180b..289a32b6d3473 100644 --- a/src/llama-context.cpp +++ b/src/llama-context.cpp @@ -181,7 +181,7 @@ llama_context::llama_context( // graph outputs buffer { // resized during inference when a batch uses more outputs - if ((uint32_t) output_reserve(params.n_seq_max) < params.n_seq_max) { + if (output_reserve(params.n_seq_max) < params.n_seq_max) { throw std::runtime_error("failed to reserve initial output buffer"); }