fixed casting problem between uint32 and time_t present for some compilers (MUSR-185)
This commit is contained in:
parent
87d366355f
commit
4063fed5ea
@ -8,6 +8,7 @@ changes since 0.9.0
|
||||
===================================
|
||||
NEW any2many: force the user to define the exact NeXus ouput formate (HDF4,
|
||||
HDF5, XML)
|
||||
FIXED casting problem between uint32 and time_t for some compilers (MUSR-185)
|
||||
FIXED bug reported in MUSR-183: missing background for 2nd histo in asymmetry fits when using musrt0.
|
||||
FIXED Makefiles so that the NeXus support will not be built if it has not been enabled during the configure stage
|
||||
FIXED ASCII export from musrview in case of a Fourier-Power- or Fourier-Phase-difference plot
|
||||
|
@ -1809,13 +1809,15 @@ Bool_t PRunDataHandler::ReadMudFile()
|
||||
}
|
||||
|
||||
// get start/stop time of the run
|
||||
time_t tval;
|
||||
struct tm *dt;
|
||||
TString stime("");
|
||||
Int_t yy = 0;
|
||||
success = MUD_getTimeBegin( fh, &val );
|
||||
success = MUD_getTimeBegin( fh, (UINT32*)&tval );
|
||||
if (success) {
|
||||
runData.SetStartDateTime((const time_t)val);
|
||||
dt = localtime((const time_t*)&val);
|
||||
runData.SetStartDateTime((const time_t)tval);
|
||||
dt = localtime((const time_t*)&tval);
|
||||
assert(dt);
|
||||
yy = dt->tm_year;
|
||||
if (yy > 100)
|
||||
yy -= 100;
|
||||
@ -1849,10 +1851,11 @@ Bool_t PRunDataHandler::ReadMudFile()
|
||||
}
|
||||
|
||||
stime = TString("");
|
||||
success = MUD_getTimeEnd( fh, &val );
|
||||
success = MUD_getTimeEnd( fh, (UINT32*)&tval );
|
||||
if (success) {
|
||||
runData.SetStopDateTime((const time_t)val);
|
||||
dt = localtime((const time_t*)&val);
|
||||
runData.SetStopDateTime((const time_t)tval);
|
||||
dt = localtime((const time_t*)&tval);
|
||||
assert(dt);
|
||||
stime = "";
|
||||
yy = dt->tm_year;
|
||||
if (yy > 100)
|
||||
|
Loading…
x
Reference in New Issue
Block a user