diff --git a/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp b/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp index a066575a3..3154110de 100644 --- a/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp +++ b/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp @@ -534,7 +534,7 @@ struct llama_file { } } - void write_u32(std::uint32_t val) { + void write_u32(std::uint32_t val) const { write_raw(&val, sizeof(val)); }