[test][iter] minor, fix double promotion warning

This commit is contained in:
Ebrahim Byagowi 2019-04-03 00:48:59 +04:30 committed by GitHub
parent 062f5d6e7a
commit edad6b2c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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);