[libcxx-commits] [PATCH] D71525: [libc++] Fix typo in std::midpoint
Fangrui Song via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 21 01:28:34 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6e8659c351fe: [libc++] Fix typo in std::midpoint (authored by ruslo, committed by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71525/new/
https://reviews.llvm.org/D71525
Files:
libcxx/include/numeric
Index: libcxx/include/numeric
===================================================================
--- libcxx/include/numeric
+++ libcxx/include/numeric
@@ -573,7 +573,7 @@
return __fp_abs(__a) <= __hi && __fp_abs(__b) <= __hi ? // typical case: overflow is impossible
(__a + __b)/2 : // always correctly rounded
__fp_abs(__a) < __lo ? __a + __b/2 : // not safe to halve a
- __fp_abs(__a) < __lo ? __a/2 + __b : // not safe to halve b
+ __fp_abs(__b) < __lo ? __a/2 + __b : // not safe to halve b
__a/2 + __b/2; // otherwise correctly rounded
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71525.235007.patch
Type: text/x-patch
Size: 717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191221/5e42f9cf/attachment.bin>
More information about the libcxx-commits
mailing list