Changed code to avoid compiler warnings.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403055
This commit is contained in:
Davis King 2009-05-25 00:33:57 +00:00
parent 116ac765b3
commit 1d3b6b1f09

View File

@ -43,7 +43,7 @@ namespace dlib
// compute the first row of the integral image
unsigned long temp = 0;
for (unsigned long c = 0; c < img.nc(); ++c)
for (long c = 0; c < img.nc(); ++c)
{
assign_pixel(pixel, img[0][c]);
temp += pixel;
@ -51,10 +51,10 @@ namespace dlib
}
// now compute the rest of the integral image
for (unsigned long r = 1; r < img.nr(); ++r)
for (long r = 1; r < img.nr(); ++r)
{
temp = 0;
for (unsigned long c = 0; c < img.nc(); ++c)
for (long c = 0; c < img.nc(); ++c)
{
assign_pixel(pixel, img[r][c]);
temp += pixel;