Skip to content

Commit f4e664f

Browse files
authored
context : remove redundant explicit casting to the same type (ggml-org#15948)
The function 'output_reserve' return type is 'uint32_t', so need to add explicit casting.
1 parent f088b6a commit f4e664f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ llama_context::llama_context(
181181
// graph outputs buffer
182182
{
183183
// resized during inference when a batch uses more outputs
184-
if ((uint32_t) output_reserve(params.n_seq_max) < params.n_seq_max) {
184+
if (output_reserve(params.n_seq_max) < params.n_seq_max) {
185185
throw std::runtime_error("failed to reserve initial output buffer");
186186
}
187187

0 commit comments

Comments
 (0)