diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-02-11 10:39:14 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-02-11 10:39:14 +0000 |
commit | 4d0129dbcfaffc5cd7748145b1ae165b7e136870 (patch) | |
tree | c3890f2c7dc20316b4cef182707aac32adf62625 /navit/attr.c | |
parent | 9f32d6332e3f53ee158f259b6d3fe3566ed64eea (diff) | |
download | navit-4d0129dbcfaffc5cd7748145b1ae165b7e136870.tar.gz |
Fix:map_binfile:Cleanup
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2035 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r-- | navit/attr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/navit/attr.c b/navit/attr.c index b3af150a1..687ad9d2d 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -334,6 +334,11 @@ attr_data_set_le(struct attr * attr, void * data) { if (attr->type >= attr_type_int_begin && attr->type <= attr_type_int_end) attr->u.num=le32_to_cpu(*((int *)data)); + else if (attr->type == attr_order) { + attr->u.num=le32_to_cpu(*((int *)data)); + attr->u.range.min=le16_to_cpu(attr->u.range.min); + attr->u.range.max=le16_to_cpu(attr->u.range.max); + } else /* Fixme: Handle long long */ attr->u.data=data; |