Skip to content

Commit bc60e61

Browse files
committed
found possible fix for #131
1 parent cded7b3 commit bc60e61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stl/_speedups.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cython: language_level=2
12
from libc.stdio cimport *
23
from libc.string cimport memcpy, strcmp, strstr, strcpy
34

@@ -33,7 +34,7 @@ cdef packed struct Facet:
3334
dtype = np.dtype([
3435
('normals', np.float32, 3),
3536
('vectors', np.float32, (3, 3)),
36-
('attr', np.uint16, 1),
37+
('attr', np.uint16, (1,)),
3738
])
3839

3940
DEF ALLOC_SIZE = 200000

0 commit comments

Comments
 (0)