Skip to content

Commit

Permalink
ffi: specify const to i_th's return type
Browse files Browse the repository at this point in the history
It was already the case from the rust side.
  • Loading branch information
hhirtz committed May 18, 2022
1 parent 7c3ca6b commit 76929b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffi/include/coupe.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ coupe_data *coupe_data_constant(uintptr_t len, enum coupe_type type, const void
*
* This function returns NULL on allocation failure.
*/
coupe_data *coupe_data_fn(const void *context, uintptr_t len,
enum coupe_type type, void *(*i_th)(const void *, uintptr_t));
coupe_data *coupe_data_fn(const void *context, uintptr_t len, enum coupe_type type,
const void *(*i_th)(const void *, uintptr_t));

/**
* Adjacency structure for use with topologic algorithms.
Expand Down

0 comments on commit 76929b6

Please sign in to comment.