Skip to content

Commit fdf6277

Browse files
mgautierfrrgaudin
authored andcommitted
Rename int_cy_call_fct into uint64_cy_call_fct
1 parent 66dac18 commit fdf6277

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libzim/libwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ std::string _callMethodOnObj(PyObject *obj, const std::string& methodName, std::
7878

7979
template<>
8080
uint64_t _callMethodOnObj(PyObject *obj, const std::string& methodName, std::string& error) {
81-
return int_cy_call_fct(obj, methodName, &error);
81+
return uint64_cy_call_fct(obj, methodName, &error);
8282
}
8383

8484
template<>

libzim/libzim.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ cdef public api:
132132
# error[0] = traceback.format_exc().encode('UTF-8')
133133
# return False
134134

135-
uint64_t int_cy_call_fct(object obj, string method, string *error) with gil:
136-
"""Lookup and execute a pure virtual method on object returning an int"""
135+
uint64_t uint64_cy_call_fct(object obj, string method, string *error) with gil:
136+
"""Lookup and execute a pure virtual method on object returning an uint64_t"""
137137
try:
138138
return <uint64_t> call_method(obj, method)
139139
except Exception as e:

0 commit comments

Comments
 (0)