[svn-commits] twilson: branch 1.8 r323863 - /branches/1.8/include/asterisk/utils.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jun 15 14:58:24 CDT 2011


Author: twilson
Date: Wed Jun 15 14:58:18 2011
New Revision: 323863

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323863
Log:
Make ARRAY_LEN() return the same type on x86 and x86_64 systems

Modified:
    branches/1.8/include/asterisk/utils.h

Modified: branches/1.8/include/asterisk/utils.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/include/asterisk/utils.h?view=diff&rev=323863&r1=323862&r2=323863
==============================================================================
--- branches/1.8/include/asterisk/utils.h (original)
+++ branches/1.8/include/asterisk/utils.h Wed Jun 15 14:58:18 2011
@@ -667,7 +667,7 @@
  */
 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 */




More information about the svn-commits mailing list