"cacheflow/git@developer.sourcefind.cn:norm/vllm.git" did not exist on "531e1c74e81075de85070dae84938e597756684b"
Unverified Commit e7087e59 authored by hwiesmann's avatar hwiesmann Committed by GitHub
Browse files

Prevention of compiler warning (#2015)


Co-authored-by: default avatarHartwig <git@skywind.eu>
parent c832d3b2
...@@ -1722,7 +1722,7 @@ namespace dlib ...@@ -1722,7 +1722,7 @@ namespace dlib
throw dlib::serialization_error("Error while serializing a Google Protocol Buffer object, message too large."); throw dlib::serialization_error("Error while serializing a Google Protocol Buffer object, message too large.");
// write temp to the output stream // write temp to the output stream
uint32 size = temp.size(); uint32 size = static_cast<uint32>(temp.size());
bo.host_to_little(size); bo.host_to_little(size);
out.write((char*)&size, sizeof(size)); out.write((char*)&size, sizeof(size));
out.write(temp.c_str(), temp.size()); out.write(temp.c_str(), temp.size());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment