Skip to content

Commit

Permalink
Fix cast between incompatible pointer types
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Oct 27, 2022
1 parent 834df17 commit 04bd928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StRoot/StDaqLib/SSD/SSD_Reader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ SSD_Reader::SSD_Reader(EventReader *er) {
datap=er->getDATAP();
if (datap) {

unsigned int UTime = er->getEventInfo().UnixTime;
struct tm *time=gmtime((time_t*) &UTime);
std::time_t UTime = er->getEventInfo().UnixTime;
struct tm *time=gmtime(&UTime);

//LDate = (((1900+time->tm_year)*100 + 1 + time->tm_mon)*100 + time->tm_mday)*100;
//LDate = yyyymmdd
Expand Down

0 comments on commit 04bd928

Please sign in to comment.