From f0f3a9c838acbef3131633bd2fd3f1e0571a9f3e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Feb 2015 15:47:02 +0200 Subject: Fix incorrect vector indexes --- common/bulk/driver.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/bulk') diff --git a/common/bulk/driver.cxx b/common/bulk/driver.cxx index f1b624e..a6ae973 100644 --- a/common/bulk/driver.cxx +++ b/common/bulk/driver.cxx @@ -1115,9 +1115,9 @@ main (int argc, char* argv[]) std::vector v (fill (4)); v[0].id = 1; - v[2].id = 2; - v[3].id = 3; - v[4].id = 4; + v[1].id = 2; + v[2].id = 3; + v[3].id = 4; // persist @@ -1133,9 +1133,9 @@ main (int argc, char* argv[]) v[3].v != 0); //cerr << v[0].v << endl - // << v[0].v << endl - // << v[0].v << endl - // << v[0].v << endl; + // << v[1].v << endl + // << v[2].v << endl + // << v[3].v << endl; } // update -- cgit v1.1