fixed compiler warnings

This commit is contained in:
Davis King 2016-06-25 11:17:07 -04:00
parent 1f5e406617
commit efcdc871e4
2 changed files with 3 additions and 3 deletions

View File

@ -208,9 +208,9 @@ namespace dlib
auto ptr = data.host();
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);
auto p = ptr++;

View File

@ -132,7 +132,7 @@ struct image_info
{
string filename;
string label;
unsigned long numeric_label;
long numeric_label;
};
std::vector<image_info> get_imagenet_train_listing(