@@ -86,12 +86,12 @@ cdef class {{name}}Vector:
8686 self.data.n = 0
8787 self.data.m = _INIT_VEC_CAP
8888 self.ao = np.empty(self.data.m, dtype={{idtype}})
89- self.data.data = <{{arg}}*> self.ao.data
89+ self.data.data = <{{arg}}*>self.ao.data
9090
9191 cdef resize(self):
9292 self.data.m = max(self.data.m * 4, _INIT_VEC_CAP)
9393 self.ao.resize(self.data.m, refcheck=False)
94- self.data.data = <{{arg}}*> self.ao.data
94+ self.data.data = <{{arg}}*>self.ao.data
9595
9696 def __dealloc__(self):
9797 if self.data is not NULL:
@@ -140,7 +140,7 @@ cdef class StringVector:
140140 self.external_view_exists = False
141141 self.data.n = 0
142142 self.data.m = _INIT_VEC_CAP
143- self.data.data = <char **> malloc(self.data.m * sizeof(char *))
143+ self.data.data = <char **>malloc(self.data.m * sizeof(char *))
144144 if not self.data.data:
145145 raise MemoryError()
146146
@@ -153,7 +153,7 @@ cdef class StringVector:
153153 self.data.m = max(self.data.m * 4, _INIT_VEC_CAP)
154154
155155 orig_data = self.data.data
156- self.data.data = <char **> malloc(self.data.m * sizeof(char *))
156+ self.data.data = <char **>malloc(self.data.m * sizeof(char *))
157157 if not self.data.data:
158158 raise MemoryError()
159159 for i in range(m):
@@ -208,22 +208,22 @@ cdef class ObjectVector:
208208 self.n = 0
209209 self.m = _INIT_VEC_CAP
210210 self.ao = np.empty(_INIT_VEC_CAP, dtype=object)
211- self.data = <PyObject**> self.ao.data
211+ self.data = <PyObject**>self.ao.data
212212
213213 def __len__(self):
214214 return self.n
215215
216- cdef inline append(self, object o ):
216+ cdef inline append(self, object obj ):
217217 if self.n == self.m:
218218 if self.external_view_exists:
219219 raise ValueError("external reference but "
220220 "Vector.resize() needed")
221221 self.m = max(self.m * 2, _INIT_VEC_CAP)
222222 self.ao.resize(self.m, refcheck=False)
223- self.data = <PyObject**> self.ao.data
223+ self.data = <PyObject**>self.ao.data
224224
225- Py_INCREF(o )
226- self.data[self.n] = <PyObject*> o
225+ Py_INCREF(obj )
226+ self.data[self.n] = <PyObject*>obj
227227 self.n += 1
228228
229229 def to_array(self):
@@ -768,7 +768,7 @@ cdef class StringHashTable(HashTable):
768768 use_na_value = na_value is not None
769769
770770 # assign pointers and pre-filter out missing
771- vecs = <const char **> malloc(n * sizeof(char *))
771+ vecs = <const char **>malloc(n * sizeof(char *))
772772 for i in range(n):
773773 val = values[i]
774774
@@ -844,9 +844,9 @@ cdef class PyObjectHashTable(HashTable):
844844
845845 def sizeof(self, deep=False):
846846 """ return the size of my table in bytes """
847- return self.table.n_buckets * (sizeof(PyObject *) + # keys
848- sizeof(Py_ssize_t) + # vals
849- sizeof(uint32_t)) # flags
847+ return self.table.n_buckets * (sizeof(PyObject *) + # keys
848+ sizeof(Py_ssize_t) + # vals
849+ sizeof(uint32_t)) # flags
850850
851851 cpdef get_item(self, object val):
852852 cdef khiter_t k
0 commit comments