From: Haiyue Wang Date: Fri, 12 Sep 2025 15:16:32 +0000 (+0800) Subject: context : remove redundant explicit casting to the same type (#15948) X-Git-Tag: upstream/0.0.6527~71 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f4e664f838cc65d89fa845c48c372e43852112e4;p=pkg%2Fggml%2Fsources%2Fllama.cpp 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. --- diff --git a/src/llama-context.cpp b/src/llama-context.cpp index 3e163001..289a32b6 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"); }