Commit efcdc871 authored by Davis King's avatar Davis King

fixed compiler warnings

parent 1f5e4066
...@@ -208,9 +208,9 @@ namespace dlib ...@@ -208,9 +208,9 @@ namespace dlib
auto ptr = data.host(); auto ptr = data.host();
for (auto i = ibegin; i != iend; ++i) for (auto i = ibegin; i != iend; ++i)
{ {
for (long r = 0; r < NR; ++r) for (size_t r = 0; r < NR; ++r)
{ {
for (long c = 0; c < NC; ++c) for (size_t c = 0; c < NC; ++c)
{ {
rgb_pixel temp = (*i)(r,c); rgb_pixel temp = (*i)(r,c);
auto p = ptr++; auto p = ptr++;
......
...@@ -132,7 +132,7 @@ struct image_info ...@@ -132,7 +132,7 @@ struct image_info
{ {
string filename; string filename;
string label; string label;
unsigned long numeric_label; long numeric_label;
}; };
std::vector<image_info> get_imagenet_train_listing( std::vector<image_info> get_imagenet_train_listing(
......
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