Skip to content

Commit e916fa0

Browse files
author
zhouwg
committed
build: build llama.cpp on Windows without VS IDE -- the second patch
1 parent bcbd796 commit e916fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/export-lora/export-lora.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct lora_merge_ctx {
148148

149149
ctx_out = gguf_init_empty();
150150
struct ggml_init_params params = {
151-
/*.mem_size =*/ gguf_get_n_tensors(base_model.ctx_gguf)*ggml_tensor_overhead(),
151+
/*.mem_size =*/ static_cast<size_t>(gguf_get_n_tensors(base_model.ctx_gguf)*ggml_tensor_overhead()),
152152
/*.mem_buffer =*/ NULL,
153153
/*.no_alloc =*/ true,
154154
};

0 commit comments

Comments
 (0)