Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/vector/Vlib/graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int Vect_graph_shortest_path(dglGraph_s *graph, int from, int to,
if (List != NULL) {
for (i = 0; i < pSPReport->cArc; i++) {
line = dglEdgeGet_Id(graph, pSPReport->pArc[i].pnEdge);
G_debug(2, "From %ld to %ld - cost %ld user %d distance %ld",
G_debug(2, "From %d to %d - cost %d user %d distance %d",
pSPReport->pArc[i].nFrom, pSPReport->pArc[i].nTo,
/* this is the cost from clip() */
dglEdgeGet_Cost(graph, pSPReport->pArc[i].pnEdge) / 1000,
Expand Down
4 changes: 2 additions & 2 deletions lib/vector/Vlib/net_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int convert_dgl_shortest_path_result(struct Map_info *Map,
for (i = 0; i < pSPReport->cArc; i++) {
line = dglEdgeGet_Id(&(Map->dgraph.graph_s), pSPReport->pArc[i].pnEdge);
G_debug(
2, "From %ld to %ld - cost %ld user %d distance %ld",
2, "From %d to %d - cost %d user %d distance %d",
pSPReport->pArc[i].nFrom, pSPReport->pArc[i].nTo,
dglEdgeGet_Cost(&(Map->dgraph.graph_s), pSPReport->pArc[i].pnEdge) /
Map->dgraph.cost_multip, /* this is the cost from clip() */
Expand Down Expand Up @@ -121,7 +121,7 @@ static int ttb_convert_dgl_shortest_path_result(struct Map_info *Map,
line_id *= -1;

G_debug(
2, "From %ld to %ld - cost %ld user %d distance %ld",
2, "From %d to %d - cost %d user %d distance %d",
pSPReport->pArc[i].nFrom, pSPReport->pArc[i].nTo,
dglEdgeGet_Cost(&(Map->dgraph.graph_s), pSPReport->pArc[i].pnEdge) /
Map->dgraph.cost_multip, /* this is the cost from clip() */
Expand Down
6 changes: 4 additions & 2 deletions lib/vector/dglib/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
#define G_NDR 1
#endif

#include <stdint.h>

typedef unsigned char dglByte_t;
typedef long dglInt32_t;
typedef long long dglInt64_t;
typedef int32_t dglInt32_t;
typedef int64_t dglInt64_t;

#endif
Loading