[MPlayer-cvslog] r32250 - trunk/configure

diego subversion at mplayerhq.hu
Wed Sep 15 11:25:21 CEST 2010


Author: diego
Date: Wed Sep 15 11:25:20 2010
New Revision: 32250

Log:
Cast return value to long instead of int in byte order check.
This avoids the following warning on 64 bit systems:
tmp.c:3: warning: cast from pointer to integer of different size

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 19:20:49 2010	(r32249)
+++ trunk/configure	Wed Sep 15 11:25:20 2010	(r32250)
@@ -2449,7 +2449,7 @@ if test "$_big_endian" = auto ; then
   cat > $TMPC <<EOF
 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'),
                        (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0};
-int main(void) { return (int)ascii_name; }
+int main(void) { return (long)ascii_name; }
 EOF
   if cc_check ; then
     if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then


More information about the MPlayer-cvslog mailing list