diff options
author | Jack Lloyd <[email protected]> | 2019-05-24 18:26:18 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-24 18:26:38 -0400 |
commit | 0224ebc62cec8a0a7dd4d7ca05d108f953deafb5 (patch) | |
tree | b74c4ceb25b743a18ad97d0bdea3350ed2e386ec /src/bogo_shim | |
parent | 0052f25bb35ab55fede1e109ce394dacb1040e1d (diff) |
Fix another warning in BoGo shim
On Linux x86-64 this complains because time_t is unsigned long not
unsigned long long. Just cast it.
Diffstat (limited to 'src/bogo_shim')
-rw-r--r-- | src/bogo_shim/bogo_shim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bogo_shim/bogo_shim.cpp b/src/bogo_shim/bogo_shim.cpp index ded7d3654..d59b3146a 100644 --- a/src/bogo_shim/bogo_shim.cpp +++ b/src/bogo_shim/bogo_shim.cpp @@ -57,7 +57,7 @@ void shim_log(const std::string& s) static FILE* log = std::fopen("/tmp/bogo_shim.log", "w"); struct timeval tv; ::gettimeofday(&tv, nullptr); - std::fprintf(log, "%lld.%lu: %s\n", tv.tv_sec, tv.tv_usec, s.c_str()); + std::fprintf(log, "%lld.%lu: %s\n", static_cast<unsigned long long>(tv.tv_sec), tv.tv_usec, s.c_str()); std::fflush(log); } } |