summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-03 14:53:05 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-03 14:53:05 (GMT)
commitfa8bed77261fb9e4a0ec2b9be40c07908fc93116 (patch)
tree1596daad3cbda108c8d0406a50b4445a1f85e994 /src/parser.y
parentacfd1e1b19eeffc62f66f9ff52605303fd0eb2d5 (diff)
refactor fix: use hex timestamps
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y
index 219dd5e..2d78d1f 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -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) {
contact: Jan Huwald // Impressum