summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-02-14 00:39:30 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-02-14 00:39:30 +0000
commitb3746796dc5608645ff5a9f4e46b4ef697a51a77 (patch)
treee0ec647e4513b88d9b9217ad5bab065fe37cf878 /numpy/core/src/arrayobject.c
parent17049d1f489ce9fa46014cf2839715ca663ffd22 (diff)
downloadnumpy-b3746796dc5608645ff5a9f4e46b4ef697a51a77.tar.gz
Fixed allocation problem.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
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