Skip to content

Commit eda2d95

Browse files
committed
insert_sorted: fix return type
1 parent 009e7a8 commit eda2d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpkg/pkg/vec.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
element_type *_name##_insert_sorted(type *v, element_type el) { \
9090
/* Verify if the element already exists */ \
9191
if (v->len > 0) { \
92-
type *found = bsearch(&el, v->d, v->len, sizeof(element_type), compare_func); \
92+
element_type *found = bsearch(&el, v->d, v->len, sizeof(element_type), compare_func); \
9393
if (found != NULL){ \
9494
return (found); \
9595
} \

0 commit comments

Comments
 (0)