- /* OUT */gras_set_elm_t **dst) {
- if (id < gras_dynar_length(set->dynar) &&
- id >= 0) {
- gras_dynar_get(set->dynar,id,dst);
- DEBUG3("Lookup type of id %d (of %d): %s",
- id, gras_dynar_length(set->dynar), (*dst)->name);
+ /* OUT */xbt_set_elm_t *dst) {
+
+ /* Don't bother checking the bounds, the dynar does so */
+
+ *dst = xbt_dynar_get_as(set->dynar,id,xbt_set_elm_t);
+ DEBUG3("Lookup type of id %d (of %lu): %s",
+ id, xbt_dynar_length(set->dynar), (*dst)->name);