File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#include < fstream>
1010#include < string>
1111#include < vector>
12+ #include < cinttypes>
1213#include < cstdint>
1314
1415// Computes FNV-1a hash of the data
@@ -126,10 +127,10 @@ int main(int argc, char ** argv) {
126127 append_bytes_hex (cpp, bytes);
127128 const auto hash = fnv_hash (bytes.data (), bytes.size ());
128129
129- cpp += fmt (" };\n static const size_t asset_%d_size = %lu ;\n " ,
130- i, static_cast < unsigned long >( bytes.size () ));
131- cpp += fmt (" static const char asset_%d_etag[] = \"\\\" 0x%016lx \\\"\" ;\n\n " ,
132- i, static_cast < unsigned long >( hash) );
130+ cpp += fmt (" };\n static const size_t asset_%d_size = %zu ;\n " ,
131+ i, bytes.size ());
132+ cpp += fmt (" static const char asset_%d_etag[] = \"\\\" 0x%016 " PRIx64 " \\\"\" ;\n\n " ,
133+ i, hash);
133134 }
134135
135136 cpp += " static const llama_ui_asset g_assets[] = {\n " ;
You can’t perform that action at this time.
0 commit comments