diff options
author | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-09-07 19:06:38 +0000 |
---|---|---|
committer | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-09-07 19:06:38 +0000 |
commit | 7fcf0f4d07f9e57ede8216aa60a47339c44f1246 (patch) | |
tree | 4356bfaeac2373d71f684c9faf3134ad96c21a08 /navit/maptool | |
parent | e9db2a462b106c5a1844e8826b9b3ed5fa90861a (diff) | |
download | navit-svn-7fcf0f4d07f9e57ede8216aa60a47339c44f1246.tar.gz |
Fix:maptool:Fixed use of maptool with slices > 32GB, closes #1249|Thanks Tryagain!
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5890 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/maptool')
-rw-r--r-- | navit/maptool/osm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index 4cb8c7bc..9c3de0d2 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -1365,13 +1365,13 @@ clear_node_item_buffer(void) } } -static int +static long long node_item_find_index_in_ordered_list(osmid id) { struct node_item *node_buffer_base=(struct node_item *)(node_buffer.base); - int node_count=node_buffer.size/sizeof(struct node_item); - int search_step=node_count>4 ? node_count/4 : 1; - int search_index=node_count/2; + long long node_count=node_buffer.size/sizeof(struct node_item); + long long search_step=node_count>4 ? node_count/4 : 1; + long long search_index=node_count/2; if (node_buffer_base[0].id > id) return -1; if (node_buffer_base[node_count-1].id < id) @@ -1414,7 +1414,7 @@ static struct node_item * node_item_get(osmid id) { struct node_item *node_buffer_base=(struct node_item *)(node_buffer.base); - int result_index; + long long result_index; if (node_hash) { // Use g_hash_table_lookup_extended instead of g_hash_table_lookup // to distinguish a key with a value 0 from a missing key. |