Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
insert_sorted: fix return type
Baptiste Daroussin committed 1 year ago
commit eda2d95d23ec8d1dbcd0680148d7c806d68f009f
parent 009e7a876c43c478ee23851480c6aa9bd9acfe30
1 file changed +1 -1
modified libpkg/pkg/vec.h
@@ -89,7 +89,7 @@
	element_type *_name##_insert_sorted(type *v, element_type el) { \
		/* Verify if the element already exists */ \
		if (v->len > 0) { \
-
			type *found = bsearch(&el, v->d, v->len, sizeof(element_type), compare_func); \
+
			element_type *found = bsearch(&el, v->d, v->len, sizeof(element_type), compare_func); \
			if (found != NULL){ \
				return (found); \
			} \