diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-10 22:46:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-10 22:46:45 +0000 |
commit | ded707de84a7b1f36a395299ff945c2b2e069bff (patch) | |
tree | e112417452906b085fd991910c261a002536fd58 /src/include | |
parent | b7c6bde2b64dcea4e6d272b11dd111b704309f93 (diff) | |
download | skalibs-ded707de84a7b1f36a395299ff945c2b2e069bff.tar.xz |
Gnfrlbl... gensetdyn_iter is an unsigned int again, but the value
is now tested against gensetdyn_n(g). It's cleaner, I swear.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/gensetdyn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/skalibs/gensetdyn.h b/src/include/skalibs/gensetdyn.h index 7cb8f1a..5171a00 100644 --- a/src/include/skalibs/gensetdyn.h +++ b/src/include/skalibs/gensetdyn.h @@ -36,7 +36,7 @@ extern int gensetdyn_delete (gensetdyn *, unsigned int) ; #define GENSETDYN_P(type, g, i) ((type *)gensetdyn_p(g, i)) extern unsigned int gensetdyn_iter_nocancel (gensetdyn *, unsigned int, iterfunc_t_ref, void *) ; -#define gensetdyn_iter(g, f, stuff) (gensetdyn_iter_nocancel(g, (g)->storage.len, f, stuff) == (g)->storage.len) +#define gensetdyn_iter(g, f, stuff) gensetdyn_iter_nocancel(g, gensetdyn_n(g), f, stuff) extern int gensetdyn_iter_withcancel (gensetdyn *, iterfunc_t_ref, iterfunc_t_ref, void *) ; #endif |