This commit is contained in:
Alexei Romanoff 2012-10-12 12:32:32 +03:00
parent d5f99959cc
commit 89ce16df39
2 changed files with 4 additions and 1 deletions

View file

@ -361,7 +361,7 @@ _push:
if(construct_cb(_map_item)(user, c->count, &c->obj, c->map_key, obj) < 0) { goto _failed; }
if(++c->count == c->size) {
obj = c->obj;
construct_cb(_map_end)(user, &obj);
if (construct_cb(_map_end)(user, &obj) < 0) { goto _failed; }
--top;
/*printf("stack pop %d\n", top);*/
goto _push;