From 8e9461ea6af2ce6ae0d02143574d29cc22e8f1e7 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Fri, 9 Dec 2011 17:40:40 +0100 Subject: [PATCH] Minor change: simplifying code. --- extractor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extractor.cpp b/extractor.cpp index 2ba0a35a3..3695e33c5 100644 --- a/extractor.cpp +++ b/extractor.cpp @@ -426,10 +426,10 @@ int main (int argc, char *argv[]) { break; } fout.write((char*)&intWeight, sizeof(int)); - short edgeType = edgeIT->type; - fout.write((char*)&edgeType, sizeof(short)); + assert(edgeIT->type >= 0); + fout.write((char*)&edgeIT->type, sizeof(short)); fout.write((char*)&edgeIT->nameID, sizeof(unsigned)); - fout.write((char *)&edgeIT->isRoundabout, sizeof(bool)); + fout.write((char*)&edgeIT->isRoundabout, sizeof(bool)); } ++usedEdgeCounter; ++edgeIT; @@ -501,4 +501,3 @@ bool wayFunction(_Way w) { extractCallBacks->wayFunction(w); return true; } -