Skip to content
Browse files

New mpdm_iterator() semantics for arrays.

  • Loading branch information...
1 parent cf54331 commit aa159ca21a4d1b00defd717793f2b5e152c2d8e7 Angel Ortega committed Aug 6, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 mpdm_h.c
View
9 mpdm_h.c
@@ -392,14 +392,15 @@ int mpdm_iterator(mpdm_t o, int *context, mpdm_t *k, mpdm_t *v)
if (MPDM_IS_ARRAY(o)) {
if (*context < mpdm_size(o)) {
/* MPSL 2.x */
- *k = mpdm_aget(o, (*context)++);
- *v = NULL;
+/* *k = mpdm_aget(o, (*context)++);
+ *v = NULL;
+*/
/* MPSL 3.x */
-/*
+
*k = MPDM_I(*context);
*v = mpdm_aget(o, (*context)++);
-*/
+
ret = 1;
}
}

0 comments on commit aa159ca

Please sign in to comment.
Something went wrong with that request. Please try again.