Commit d0d054df authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libdatrwxx [FIX]: use signed integer for sample index in oasciistream

It is a fault to use "unsigned int" when assigning a series index in any case.
parent 6a8b69d1
......@@ -126,9 +126,10 @@ namespace datrw {
{
DATRW_debug(Mdebug, "oasciistream::writetrace (double)",
DATRW_value(series.f()) << ", "
DATRW_value(series.l()));
DATRW_value(series.l()) << ", "
DATRW_value(Mprecision));
this->writetraceheader(series.size(),ascii::keydouble);
for (unsigned int i=series.first(); i<=series.last(); ++i)
for (int i=series.first(); i<=series.last(); ++i)
{
Mos.precision(Mprecision);
Mos << series(i) << "\n";
......@@ -142,9 +143,10 @@ namespace datrw {
{
DATRW_debug(Mdebug, "oasciistream::writetrace (float)",
DATRW_value(series.f()) << ", "
DATRW_value(series.l()));
DATRW_value(series.l()) << ", "
DATRW_value(Mprecision));
this->writetraceheader(series.size(),ascii::keyfloat);
for (unsigned int i=series.first(); i<=series.last(); ++i)
for (int i=series.first(); i<=series.last(); ++i)
{
Mos.precision(Mprecision);
Mos << series(i) << "\n";
......@@ -160,7 +162,7 @@ namespace datrw {
DATRW_value(series.f()) << ", "
DATRW_value(series.l()));
this->writetraceheader(series.size(),ascii::keyint);
for (unsigned int i=series.first(); i<=series.last(); ++i)
for (int i=series.first(); i<=series.last(); ++i)
{
Mos << series(i) << "\n";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment