Skip to content

Commit

Permalink
Confirmed long long is same and simplify init
Browse files Browse the repository at this point in the history
  • Loading branch information
m-clare committed Apr 27, 2024
1 parent b3fc6be commit ea892e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c/triangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@

/* Define the size large enough to store and operate on a pointer. */
#ifdef _WIN32
#define INT_PTR uintptr_t
#define INT_PTR unsigned long long
#else
#define INT_PTR unsigned long
#endif
Expand Down
3 changes: 1 addition & 2 deletions cytriangle/cytriangleio.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ cdef class TriangleIO:

def __init__(self, input_dict=None):
# Assemble the triangulateio struct from a Python dictionary (default)
if self._io is NULL:
self._io = <triangulateio*> malloc(sizeof(triangulateio))
self._io = <triangulateio*> malloc(sizeof(triangulateio))

# Allocate null fields
self._io.pointlist = <double*> NULL
Expand Down

0 comments on commit ea892e3

Please sign in to comment.