diff options
author | geoghegan <geoghegan@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-06-27 20:46:25 +0000 |
---|---|---|
committer | geoghegan <geoghegan@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-06-27 20:46:25 +0000 |
commit | 513a1db66836931c74d67bd2e6cefd395835feba (patch) | |
tree | a0ed0f6993e5495e0dca3bd307fbfdf1081c30a4 /navit/attr.c | |
parent | 62ce14e7a86838b6e925879e6cb48415e5453ce4 (diff) | |
download | navit-513a1db66836931c74d67bd2e6cefd395835feba.tar.gz |
Fix:Core:Corrects attr->u.num to be of type long int intstead of int
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4545 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r-- | navit/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/attr.c b/navit/attr.c index 5f80bb7ed..9b5287eac 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -288,7 +288,7 @@ attr_to_text(struct attr *attr, struct map *map, int pretty) if (type == attr_flags || type == attr_through_traffic_flags) return flags_to_text(attr->u.num); if (type >= attr_type_int_begin && type <= attr_type_int_end) - return g_strdup_printf("%d", attr->u.num); + return g_strdup_printf("%ld", attr->u.num); if (type >= attr_type_int64_begin && type <= attr_type_int64_end) return g_strdup_printf(LONGLONG_FMT, *attr->u.num64); if (type >= attr_type_double_begin && type <= attr_type_double_end) |