- unsigned int i, length = xbt_dynar_length(bucket->nodes);
- for (i = 0; i < length; i++) { //TODO: Use foreach maybe ?
- if (id == xbt_dynar_get_as(bucket->nodes, i, unsigned int)) {
+ unsigned int i, current_id;
+ xbt_dynar_foreach(bucket->nodes, i, current_id){
+ if (id == current_id){