refactor fix: use hex timestamps

stl_dim
Marius Kintel 2011-09-03 16:53:05 +02:00
parent acfd1e1b19
commit fa8bed7726
1 changed files with 1 additions and 2 deletions

View File

@ -619,8 +619,7 @@ Module *Module::compile_library(std::string filename)
stat(filename.c_str(), &st);
std::stringstream idstream;
// FIXME: stream as hex
idstream << st.st_mtime << "." << st.st_size;
idstream << std::hex << st.st_mtime << "." << st.st_size;
std::string cache_id = idstream.str();
if (libs_cache.find(filename) != libs_cache.end() && libs_cache[filename].cache_id == cache_id) {