From 52f4f35e64d3b391024fdcc2354e4cd5aa03cd3a Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 11 Sep 2017 23:24:19 +0200 Subject: [PATCH] Simplification --- m-algo.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/m-algo.h b/m-algo.h index 0a315395..c0030c49 100644 --- a/m-algo.h +++ b/m-algo.h @@ -108,12 +108,10 @@ ( \ static inline void M_C(name, _find_last) (it_t it, container_t l, const type_t data) \ { \ - M_GET_IT_END cont_oplist (it, l); \ - it_t it2; \ - for (M_GET_IT_LAST cont_oplist (it2, l); \ - !M_GET_IT_END_P cont_oplist (it2) ; \ - M_GET_IT_PREVIOUS cont_oplist (it2)) { \ - if (M_GET_EQUAL type_oplist (*M_GET_IT_CREF cont_oplist (it2), data)) \ + for (M_GET_IT_LAST cont_oplist (it, l); \ + !M_GET_IT_END_P cont_oplist (it) ; \ + M_GET_IT_PREVIOUS cont_oplist (it)) { \ + if (M_GET_EQUAL type_oplist (*M_GET_IT_CREF cont_oplist (it), data)) \ return; \ } \ } \