Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dlib/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ namespace dlib
throw dlib::serialization_error("Error while serializing a Google Protocol Buffer object, message too large.");

// write temp to the output stream
uint32 size = temp.size();
uint32 size = static_cast<uint32>(temp.size());
bo.host_to_little(size);
out.write((char*)&size, sizeof(size));
out.write(temp.c_str(), temp.size());
Expand Down