[Python-checkins] r79857 - in python/branches/py3k: Objects/longobject.c

mark.dickinson python-checkins at python.org
Tue Apr 6 21:02:54 CEST 2010


Author: mark.dickinson
Date: Tue Apr  6 21:02:54 2010
New Revision: 79857

Log:
Merged revisions 79856 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79856 | mark.dickinson | 2010-04-06 19:58:54 +0100 (Tue, 06 Apr 2010) | 1 line
  
  Silence a 'comparison between signed and unsigned integer expressions' gcc warning.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Objects/longobject.c

Modified: python/branches/py3k/Objects/longobject.c
==============================================================================
--- python/branches/py3k/Objects/longobject.c	(original)
+++ python/branches/py3k/Objects/longobject.c	Tue Apr  6 21:02:54 2010
@@ -2428,7 +2428,7 @@
 					break;
 				}
 	}
-	assert(1 <= x_size && x_size <= sizeof(x_digits)/sizeof(digit));
+	assert(1 <= x_size && x_size <= (Py_ssize_t)(sizeof(x_digits)/sizeof(digit)));
 
 	/* Round, and convert to double. */
 	x_digits[0] += half_even_correction[x_digits[0] & 7];


More information about the Python-checkins mailing list