[libcxx-commits] [PATCH] D106691: [libc++] Fix vector spacing error
Alf via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 23 11:45:38 PDT 2021
gAlfonso-bit created this revision.
gAlfonso-bit added a reviewer: LLVM.
gAlfonso-bit added a project: LLVM.
gAlfonso-bit requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
"2*__cap" should be "2 * __cap".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106691
Files:
libcxx/include/vector
Index: libcxx/include/vector
===================================================================
--- libcxx/include/vector
+++ libcxx/include/vector
@@ -1027,7 +1027,7 @@
const size_type __cap = capacity();
if (__cap >= __ms / 2)
return __ms;
- return _VSTD::max<size_type>(2*__cap, __new_size);
+ return _VSTD::max<size_type>(2 * __cap, __new_size);
}
// Default constructs __n objects starting at __end_
@@ -2573,7 +2573,7 @@
const size_type __cap = capacity();
if (__cap >= __ms / 2)
return __ms;
- return _VSTD::max(2*__cap, __align_it(__new_size));
+ return _VSTD::max(2 * __cap, __align_it(__new_size));
}
// Default constructs __n objects starting at __end_
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106691.361286.patch
Type: text/x-patch
Size: 725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210723/7cfdca10/attachment-0001.bin>
More information about the libcxx-commits
mailing list