diff options
Diffstat (limited to 'sim/sim_time.cc')
-rw-r--r-- | sim/sim_time.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/sim_time.cc b/sim/sim_time.cc index 3d91eba83..70483d9a2 100644 --- a/sim/sim_time.cc +++ b/sim/sim_time.cc @@ -132,21 +132,21 @@ namespace Time ostream & operator<<(ostream &out, const Start &start) { - out << ::ctime(&start.get().tv_sec); + out << ::ctime((const time_t *)&start.get().tv_sec); return out; } ostream & operator<<(ostream &out, const Now &now) { - out << ::ctime(&now.get().tv_sec); + out << ::ctime((const time_t *)&now.get().tv_sec); return out; } ostream & operator<<(ostream &out, const Elapsed &elapsed) { - out << ::ctime(&elapsed.get().tv_sec); + out << ::ctime((const time_t *)&elapsed.get().tv_sec); return out; } } |