[test][iter] minor, fix double promotion warning
authorEbrahim Byagowi <ebrahim@gnu.org>
Tue, 2 Apr 2019 20:18:59 +0000 (00:48 +0430)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2019 20:18:59 +0000 (00:48 +0430)
src/test-iter.cc

index 8825374..675bbe3 100644 (file)
@@ -185,7 +185,7 @@ main (int argc, char **argv)
   unsigned int temp3 = 0;
   + hb_iter(src)
   | hb_map([&] (int i) -> int { return ++temp3; })
-  | hb_reduce([&] (float acc, int value) -> float { return acc + value + .05; }, 0)
+  | hb_reduce([&] (float acc, int value) -> float { return acc + value; }, 0)
   ;
   hb_map_destroy (result);