diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-02-11 12:27:20 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-02-11 12:27:20 +0000 |
commit | 8d59d59503b65fb0157182a5cfe0ff1982067df4 (patch) | |
tree | 1d3047f025df072a74c2e2b9f491a4d78d5e35f3 /navit/attr.c | |
parent | 4d0129dbcfaffc5cd7748145b1ae165b7e136870 (diff) | |
download | navit-8d59d59503b65fb0157182a5cfe0ff1982067df4.tar.gz |
Fix:Tools:Cleanup of osm2navit
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2036 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r-- | navit/attr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/attr.c b/navit/attr.c index 687ad9d2d..f8f7bb71e 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -308,6 +308,8 @@ attr_data_size(struct attr *attr) return sizeof(void *); if (attr->type >= attr_type_int64_begin && attr->type <= attr_type_int64_end) return sizeof(*attr->u.num64); + if (attr->type == attr_order) + return sizeof(attr->u.range); dbg(0,"size for %s unknown\n", attr_to_name(attr->type)); return 0; } @@ -317,6 +319,8 @@ attr_data_get(struct attr *attr) { if (attr->type >= attr_type_int_begin && attr->type <= attr_type_int_end) return &attr->u.num; + if (attr->type == attr_order) + return &attr->u.range; return attr->u.data; } |