From 3b7a1934250c83f7b04a1bdf8ccf16a791964e48 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 29 Aug 2009 23:26:46 +0000 Subject: [PATCH] Changed code to avoid compiler warning. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403173 --- dlib/image_keypoint/surf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/image_keypoint/surf.h b/dlib/image_keypoint/surf.h index 4d2185953..db0f6d8c7 100644 --- a/dlib/image_keypoint/surf.h +++ b/dlib/image_keypoint/surf.h @@ -41,7 +41,7 @@ namespace dlib const double& scale ) { - DLIB_ASSERT(get_rect(img).contains(centered_rect(center, 17*scale,17*scale)) == true && + DLIB_ASSERT(get_rect(img).contains(centered_rect(center, (unsigned long)(17*scale),(unsigned long)(17*scale))) == true && scale > 0, "\tdouble compute_dominant_angle(img, center, scale)" << "\n\tAll arguments to this function must be > 0" @@ -125,7 +125,7 @@ namespace dlib matrix& des ) { - DLIB_ASSERT(get_rect(img).contains(centered_rect(center, 31*scale,31*scale)) == true && + DLIB_ASSERT(get_rect(img).contains(centered_rect(center, (unsigned long)(31*scale),(unsigned long)(31*scale))) == true && scale > 0, "\tvoid compute_surf_descriptor(img, center, scale, angle)" << "\n\tAll arguments to this function must be > 0"