From cf1e2fa93006c65737756826bef3d4354b402f8d Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 10 Jul 2012 13:47:04 +0200 Subject: [PATCH] Removed two dead storage bugs. Thanks to LLVMs very useful scan-build static code analyzer. --- extractor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extractor.cpp b/extractor.cpp index 8a91b6c57..1c6d3cf34 100644 --- a/extractor.cpp +++ b/extractor.cpp @@ -349,7 +349,6 @@ int main (int argc, char *argv[]) { } cout << "ok, after " << get_timestamp() - time << "s" << endl; - time = get_timestamp(); cout << "[extractor] setting number of nodes ... " << flush; ios::pos_type positionInFile = fout.tellp(); @@ -457,9 +456,8 @@ int main (int argc, char *argv[]) { } } cout << "ok, after " << get_timestamp() - time << "s" << endl; - time = get_timestamp(); - cout << "[extractor] setting number of edges ... " << flush; + fout.seekp(positionInFile); fout.write((char*)&usedEdgeCounter, sizeof(unsigned)); fout.close();