[Biopython-dev] [Bug 2251] [PATCH] NumPy support for BioPython
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Wed Mar 28 16:09:57 UTC 2007
http://bugzilla.open-bio.org/show_bug.cgi?id=2251
------- Comment #2 from mdehoon at ims.u-tokyo.ac.jp 2007-03-28 12:09 EST -------
It looks like there's an error in this patch:
@@ -166,7 +184,7 @@
const int colstride = (*array)->strides[1];
for (i=0; i < nrows; i++)
{ const char* p = p0;
- mask[i] = malloc(ncolumns*sizeof(int));
+ mask[i] = malloc(ncolumns*sizeof(int*));
for (j=0; j < ncolumns; j++, p+=colstride) mask[i][j] = *((int*)p);
p0 += rowstride;
}
mask is int**, mask[i] is int*, and we're allocating ncolumns integers.
Or am I missing something?
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list