Prevention of compiler warning (#2015)

Co-authored-by: Hartwig <git@skywind.eu>
This commit is contained in:
hwiesmann 2020-03-11 01:02:02 +01:00 committed by GitHub
parent c832d3b2fc
commit e7087e5957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());