From c71181a78fcfa3a68e1ad268c686199d664426cc Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Wed, 15 Jun 2011 19:58:18 +0000 Subject: [PATCH] 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 --- include/asterisk/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.2