Fix bug in test; found by AddressSanitizer

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@177464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2013-03-20 00:01:48 +00:00
parent b74309e3ad
commit bdea27ba8f

View File

@ -33,7 +33,7 @@ int main()
double b[] = {10, 14, 16, 17};
double p[] = {25, 62.5, 12.5, 25};
const size_t Np = sizeof(p) / sizeof(p[0]);
D d1(b, b+Np+1, p);
D d1(b, b+Np, p);
std::ostringstream os;
os << d1;
std::istringstream is(os.str());