Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stfpy compilation errors when using Cython 0.29.x #44

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading