summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/memory_allocation/malloc.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/tutorial/memory_allocation/malloc.pyx')
-rw-r--r--docs/examples/tutorial/memory_allocation/malloc.pyx3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/tutorial/memory_allocation/malloc.pyx b/docs/examples/tutorial/memory_allocation/malloc.pyx
index c185187d4..6aa583aab 100644
--- a/docs/examples/tutorial/memory_allocation/malloc.pyx
+++ b/docs/examples/tutorial/memory_allocation/malloc.pyx
@@ -4,7 +4,8 @@ from libc.stdlib cimport malloc, free
def random_noise(int number=1):
cdef int i
# allocate number * sizeof(double) bytes of memory
- cdef double *my_array = <double *> malloc(number * sizeof(double))
+ cdef double *my_array = <double *> malloc(
+ number * sizeof(double))
if not my_array:
raise MemoryError()