From dee365eace3ffee04dcd75ff94164b79067d93c8 Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 2 Jan 2014 09:32:39 -0500 Subject: [PATCH] A minor change to avoid compiler warnings from gcc 4.1. It also makes the code slightly faster. --- dlib/image_transforms/fhog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/image_transforms/fhog.h b/dlib/image_transforms/fhog.h index e53929336..d6a3a4e4d 100644 --- a/dlib/image_transforms/fhog.h +++ b/dlib/image_transforms/fhog.h @@ -437,7 +437,7 @@ namespace dlib simd4f v10 = vy1*vx0; simd4f v00 = vy0*vx0; - float _best_o[4]; best_o.store(_best_o); + int32 _best_o[4]; simd4i(best_o).store(_best_o); int32 _ixp[4]; ixp.store(_ixp); float _v11[4]; v11.store(_v11); float _v01[4]; v01.store(_v01);