Mercurial > hg > waaad
changeset 343:b2641daac27d
Fixed compilation warning on 64bits platforms
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 28 Apr 2009 14:03:08 +0900 |
parents | 79aad36bdd57 |
children | 5180ab5ba385 |
files | waaad/dictionary.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/waaad/dictionary.c Tue Apr 28 13:52:14 2009 +0900 +++ b/waaad/dictionary.c Tue Apr 28 14:03:08 2009 +0900 @@ -747,7 +747,7 @@ id = *(vendor_id_t *) what; } else { ASSERT(sizeof(vendor_id_t) <= sizeof(void *)); /* otherwise the cast does not work */ - id = (vendor_id_t) what; + id = (vendor_id_t) (unsigned long) what; } SEARCH_scalar( id, &g_dict_vendors.list[0], vendor.vendor_id, 1, &g_dict_vendors ); @@ -785,7 +785,7 @@ id = *(application_id_t *) what; } else { ASSERT(sizeof(application_id_t) <= sizeof(void *)); /* otherwise the cast does not work */ - id = (application_id_t) what; + id = (application_id_t) (unsigned long) what; } SEARCH_scalar( id, &g_dict_applications.list[0], application.application_id, 1, &g_dict_applications ); @@ -965,7 +965,7 @@ code = *(avp_code_t *) what; } else { ASSERT(sizeof(avp_code_t) <= sizeof(void *)); /* otherwise the cast does not work */ - code = (avp_code_t) what; + code = (avp_code_t) (unsigned long) what; } SEARCH_scalar( code, &g_dict_vendors.list[1], avp.avp_code, 1, (_dict_object_t *)NULL ); @@ -1038,7 +1038,7 @@ code = *(command_code_t *) what; } else { ASSERT(sizeof(command_code_t) <= sizeof(void *)); /* otherwise the cast does not work */ - code = (command_code_t) what; + code = (command_code_t) (unsigned long) what; } /* The flag (request or answer) of the command we are searching */