Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e7087e59
Unverified
Commit
e7087e59
authored
Mar 11, 2020
by
hwiesmann
Committed by
GitHub
Mar 10, 2020
Browse files
Prevention of compiler warning (#2015)
Co-authored-by:
Hartwig
<
git@skywind.eu
>
parent
c832d3b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/serialize.h
dlib/serialize.h
+1
-1
No files found.
dlib/serialize.h
View file @
e7087e59
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment