]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make ARRAY_LEN() return the same type on x86 and x86_64 systems
authorTerry Wilson <twilson@digium.com>
Wed, 15 Jun 2011 19:58:18 +0000 (19:58 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 15 Jun 2011 19:58:18 +0000 (19:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@323863 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/utils.h

index ed71441e5c1035024b15772885352edc2e9d43a0..369e1c046ef422adef2f296afeea7740707ba051 100644 (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 */