From f4e664f838cc65d89fa845c48c372e43852112e4 Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Fri, 12 Sep 2025 23:16:32 +0800 Subject: [PATCH] context : remove redundant explicit casting to the same type (#15948) 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 3e163001c1..289a32b6d3 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"); }