summaryrefslogtreecommitdiffstats
path: root/conversion
diff options
context:
space:
mode:
authorPeter Baumann <baumann@rasdaman.org>2009-07-28 18:41:39 +0200
committerPeter Baumann <baumann@rasdaman.org>2009-07-28 18:41:39 +0200
commitf5bac542b5dacb37a85324d020a17334e2b602a4 (patch)
treeb982b330f219770236264ff015ec37a122a17fca /conversion
parent4412c8ce723c709f119cb3ce8ec6029e752b25ef (diff)
downloadrasdaman-upstream-f5bac542b5dacb37a85324d020a17334e2b602a4.zip
rasdaman-upstream-f5bac542b5dacb37a85324d020a17334e2b602a4.tar.gz
rasdaman-upstream-f5bac542b5dacb37a85324d020a17334e2b602a4.tar.xz
fix: last value in CSV encoded output wrong
Diffstat (limited to 'conversion')
-rw-r--r--conversion/csv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/conversion/csv.cc b/conversion/csv.cc
index 7babcbe..5e3d281 100644
--- a/conversion/csv.cc
+++ b/conversion/csv.cc
@@ -106,7 +106,7 @@ void r_Conv_CSV::print(std::ofstream &f, baseType* val, int *dims, int dim) {
if (dim==1) {
for (int i=0; i<dims[0]-1; ++i, val++)
f << (castType)val[0] << ",";
- f << (castType) val[dims[0]-1]; val++;
+ f << (castType) val[0]; val++;
} else {
for (int i=0; i<dims[0]-1; ++i, val++) {
f << "{";