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
This commit is contained in:
Terry Wilson
2011-06-15 19:58:18 +00:00
parent ae4997f3f6
commit c71181a78f

View File

@@ -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 */