Commit 5ea9a0e4 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

use proper statuic casts

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3842
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 250c5594
......@@ -109,8 +109,8 @@ int sff_rtrace__(integer *lu, real *tanf, real *dt, char *wid2line,
if (is.hasinfo()) { ocode.append("I"); }
if (!is.last()) { ocode.append("D"); }
fillfstring(ocode, code, code_len);
*tanf=real(maketanf(wid2.date));
*dt=real(wid2.dt);
*tanf=static_cast<real>(maketanf(wid2.date));
*dt=static_cast<real>(wid2.dt);
fillfstring(wid2.line(), wid2line, wid2line_len);
*nsamp=series.size();
}
......
......@@ -125,15 +125,15 @@ int sff_rtracefi__(integer *lu, real *tanf, real *dt, char *wid2line,
if (!is.last()) { ocode.append("D"); }
if (is.hasinfo()) { is >> info; }
fillfstring(ocode, code, code_len);
*tanf=real(maketanf(wid2.date));
*dt=real(wid2.dt);
*tanf=static_cast<real>(maketanf(wid2.date));
*dt=static_cast<real>(wid2.dt);
fillfstring(wid2.line(), wid2line, wid2line_len);
*nsamp=series.size();
char thecs=sff::coosysID(info.cs);
fillfstring(std::string(&thecs, 1), cs, cs_len);
*c1=real(info.cx);
*c2=real(info.cy);
*c3=real(info.cz);
*c1=static_cast<real>(info.cx);
*c2=static_cast<real>(info.cy);
*c3=static_cast<real>(info.cz);
*nstack=info.nstacks;
sff::FREE free;
if (is.hasfree()) { is >> free; }
......
......@@ -116,15 +116,15 @@ int sff_rtracei__(integer *lu, real *tanf, real *dt, char *wid2line,
if (!is.last()) { ocode.append("D"); }
if (is.hasinfo()) { is >> info; }
fillfstring(ocode, code, code_len);
*tanf=real(maketanf(wid2.date));
*dt=real(wid2.dt);
*tanf=static_cast<real>(maketanf(wid2.date));
*dt=static_cast<real>(wid2.dt);
fillfstring(wid2.line(), wid2line, wid2line_len);
*nsamp=series.size();
char thecs=sff::coosysID(info.cs);
fillfstring(std::string(&thecs, 1), cs, cs_len);
*c1=real(info.cx);
*c2=real(info.cy);
*c3=real(info.cz);
*c1=static_cast<real>(info.cx);
*c2=static_cast<real>(info.cy);
*c3=static_cast<real>(info.cz);
*nstack=info.nstacks;
if (is.last()) { istreammanager.close(static_cast<int>(*lu)); }
}
......
Supports Markdown
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