use proper types instead of implicit casts

This commit is contained in:
Dennis Luxen 2014-05-08 16:39:38 +02:00
parent abe9c4d53c
commit b0ead129ca

View File

@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define RAW_ROUTE_DATA_H #define RAW_ROUTE_DATA_H
#include "../DataStructures/PhantomNodes.h" #include "../DataStructures/PhantomNodes.h"
#include "../DataStructures/TurnInstructions.h"
#include "../typedefs.h" #include "../typedefs.h"
#include <osrm/Coordinate.h> #include <osrm/Coordinate.h>
@ -42,7 +43,7 @@ struct PathData
PathData() PathData()
: node(std::numeric_limits<unsigned>::max()), name_id(std::numeric_limits<unsigned>::max()), : node(std::numeric_limits<unsigned>::max()), name_id(std::numeric_limits<unsigned>::max()),
segment_duration(std::numeric_limits<unsigned>::max()), segment_duration(std::numeric_limits<unsigned>::max()),
turn_instruction(std::numeric_limits<unsigned char>::max()) turn_instruction(std::numeric_limits<TurnInstruction>::max())
{ {
} }
@ -53,7 +54,7 @@ struct PathData
NodeID node; NodeID node;
unsigned name_id; unsigned name_id;
unsigned segment_duration; unsigned segment_duration;
short turn_instruction; TurnInstruction turn_instruction;
}; };
struct RawRouteData struct RawRouteData