Skip to content

Commit

Permalink
Fix stfpy compilation errors when using Cython 0.29.x
Browse files Browse the repository at this point in the history
    - Cython 3.x still compiles correctly with these changes
  • Loading branch information
bdutro committed Aug 9, 2024
1 parent ea95fa6 commit 7fc346a
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 7fc346a

Please sign in to comment.