From: Terry Wilson Date: Wed, 15 Jun 2011 19:58:18 +0000 (+0000) Subject: Make ARRAY_LEN() return the same type on x86 and x86_64 systems X-Git-Tag: 1.8.5-rc1~11^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71181a78fcfa3a68e1ad268c686199d664426cc;p=thirdparty%2Fasterisk.git Make ARRAY_LEN() return the same type on x86 and x86_64 systems git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@323863 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index ed71441e5c..369e1c046e 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -667,7 +667,7 @@ void ast_enable_packet_fragmentation(int sock); */ int ast_mkdir(const char *path, int mode); -#define ARRAY_LEN(a) (sizeof(a) / sizeof(0[a])) +#define ARRAY_LEN(a) (size_t) (sizeof(a) / sizeof(0[a])) /* Definition for Digest authorization */