From 87dda1c56891bfb9d84d2bdb6271fb0e33116fff Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 23 Apr 2018 15:40:51 +1000 Subject: [PATCH] point: avoid signedness warnings for furthest point --- point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/point.cpp b/point.cpp index 66cf1cb4..d35c75e7 100644 --- a/point.cpp +++ b/point.cpp @@ -48,8 +48,8 @@ util::furthest (util::view*> src) { CHECK_GE (src.size (), 2u); - auto a = 0; - auto b = 1; + size_t a = 0; + size_t b = 1; auto d = distance2 (src[a],src[b]); for (size_t i = 0; i < src.size (); ++i) {