From b3746796dc5608645ff5a9f4e46b4ef697a51a77 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Tue, 14 Feb 2006 00:39:30 +0000 Subject: Fixed allocation problem. --- numpy/core/src/arrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 3e996d338..38f9f9434 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -870,7 +870,7 @@ PyArray_Scalar(void *data, PyArray_Descr *descr, PyObject *base) int length = itemsize >> 2; #ifndef Py_UNICODE_WIDE char *buffer; - int alloc=1; + int alloc=0; length *= 2; #endif /* Need an extra slot and need to use -- cgit v1.2.1