Update of /cvsroot/jython/jython/org/python/modules
In directory usw-pr-cvs1:/tmp/cvs-serv23805
Modified Files:
struct.java
Log Message:
Fix for "[ 522828 ] struct.pack('>NNs', v) fails for NN > 20"
Index: struct.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/modules/struct.java,v
retrieving revision 2.5
retrieving revision 2.6
diff -C2 -d -r2.5 -r2.6
*** struct.java 2 Feb 2001 11:29:42 -0000 2.5
--- struct.java 11 Mar 2002 13:39:40 -0000 2.6
***************
*** 406,410 ****
private void ensureCapacity(int l) {
if (pos + l >= data.length) {
! char[] b = new char[data.length * 2];
System.arraycopy(data, 0, b, 0, pos);
data = b;
--- 406,410 ----
private void ensureCapacity(int l) {
if (pos + l >= data.length) {
! char[] b = new char[(pos + l) * 2];
System.arraycopy(data, 0, b, 0, pos);
data = b;
|