Skip to content

Commit

Permalink
Merge pull request #44 from sparcians/dev/bdutro/fix-stfpy-cython-0.29
Browse files Browse the repository at this point in the history
Fix stfpy compilation errors when using Cython 0.29.x
  • Loading branch information
bdutro authored Aug 9, 2024
2 parents ea95fa6 + 7fc346a commit 83bb798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stfpy/stfpy/stf_inst_reader.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ cdef class HeaderCommentsTypeIterator:
@staticmethod
cdef inline HeaderCommentsTypeIterator _construct(const _HeaderCommentsType* vec):
it = HeaderCommentsTypeIterator()
it.c_it = dereference(vec).begin()
it.c_end_it = dereference(vec).end()
it.c_it = dereference(vec).const_begin()
it.c_end_it = dereference(vec).const_end()
return it

cdef class HeaderCommentsType:
Expand Down
2 changes: 1 addition & 1 deletion stfpy/stfpy/stf_lib/stf_inst_reader.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from libc.stdint cimport *
from libcpp.vector cimport vector
from cython.cimports.libcpp.string import string
from libcpp.string cimport string
from stfpy.stf_lib.stf_inst cimport STFInst

ctypedef vector[string] HeaderCommentsType
Expand Down

0 comments on commit 83bb798

Please sign in to comment.