[Python-checkins] CVS: python/dist/src/Objects longobject.c,1.93,1.94

Guido van Rossum gvanrossum@users.sourceforge.net
2001年8月30日 08:54:46 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv19134
Modified Files:
	longobject.c 
Log Message:
Ah, the joy of writing test cases...
long_subtype_new(): fix a typo (type->ob_size instead of
tmp->ob_size).
Index: longobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/longobject.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -d -r1.93 -r1.94
*** longobject.c	2001年08月29日 15:47:46	1.93
--- longobject.c	2001年08月30日 15:54:44	1.94
***************
*** 2096,2100 ****
 		return NULL;
 	assert(PyLong_Check(new));
! 	new->ob_size = type->ob_size;
 	for (i = 0; i < n; i++)
 		new->ob_digit[i] = tmp->ob_digit[i];
--- 2096,2100 ----
 		return NULL;
 	assert(PyLong_Check(new));
! 	new->ob_size = tmp->ob_size;
 	for (i = 0; i < n; i++)
 		new->ob_digit[i] = tmp->ob_digit[i];

AltStyle によって変換されたページ (->オリジナル) /