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
12448595
Commit
12448595
authored
Feb 05, 2016
by
Davis King
Browse files
Minor change to avoid compiler errors in older compilers
parent
1c449cd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/data_io/mnist.cpp
dlib/data_io/mnist.cpp
+2
-1
No files found.
dlib/data_io/mnist.cpp
View file @
12448595
...
...
@@ -6,6 +6,7 @@
#include "mnist.h"
#include <fstream>
#include "../byte_orderer.h"
#include "../uintn.h"
// ----------------------------------------------------------------------------------------
...
...
@@ -33,7 +34,7 @@ namespace dlib
byte_orderer
bo
;
// make sure the files have the contents we expect.
uint32
_t
magic
,
num
,
nr
,
nc
,
num2
,
num3
,
num4
;
uint32
magic
,
num
,
nr
,
nc
,
num2
,
num3
,
num4
;
fin1
.
read
((
char
*
)
&
magic
,
sizeof
(
magic
));
bo
.
big_to_host
(
magic
);
fin1
.
read
((
char
*
)
&
num
,
sizeof
(
num
));
bo
.
big_to_host
(
num
);
fin1
.
read
((
char
*
)
&
nr
,
sizeof
(
nr
));
bo
.
big_to_host
(
nr
);
...
...
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