Fix error when selecting number of memory pools
authorJonathan Wakely <jwakely@redhat.com>
Tue, 13 Nov 2018 23:44:39 +0000 (23:44 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 13 Nov 2018 23:44:39 +0000 (23:44 +0000)
commitb76a1b3604f8e645402a68c3352e1bc360a5b8f9
tree35de69fbaf7487ceb26653c54292743a4f774b6d
parent6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a
Fix error when selecting number of memory pools

* src/c++17/memory_resource.cc (select_num_pools): Fix off-by-one
error when block_size is equal to one of the values in the array.

From-SVN: r266092
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/memory_resource.cc