diff options
author | tasn <tasn> | 2012-07-15 12:27:56 +0000 |
---|---|---|
committer | tasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-07-15 12:27:56 +0000 |
commit | 3076667dcf22f972bc5f4347e7e0307124afb85b (patch) | |
tree | 46797e578965c0003cb4905b111f81b1ae5ae380 | |
parent | d20e09c5f1666116a14f0458f0605da3e4e9fd00 (diff) | |
download | eobj-3076667dcf22f972bc5f4347e7e0307124afb85b.tar.gz eobj-3076667dcf22f972bc5f4347e7e0307124afb85b.tar.bz2 eobj-3076667dcf22f972bc5f4347e7e0307124afb85b.zip |
Eo: Minor fixes to copy_all and clean.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@73876 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
-rw-r--r-- | src/lib/eo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eo.c b/src/lib/eo.c index 5d323b1..1e355db 100644 --- a/src/lib/eo.c +++ b/src/lib/eo.c @@ -95,7 +95,7 @@ struct _Eo_Class Eo_Class_Id class_id; const Eo_Class *parent; const Eo_Class_Description *desc; - Dich_Chain1 *chain; /**< The size is class_id */ + Dich_Chain1 *chain; /**< The size is chain size */ size_t chain_size; size_t base_id; @@ -127,7 +127,7 @@ _dich_copy_all(Eo_Class *dst, const Eo_Class *src) Eo_Op i; const Dich_Chain1 *sc1 = src->chain; Dich_Chain1 *dc1 = dst->chain; - for (i = 0 ; i <= DICH_CHAIN1(src->base_id) ; i++, sc1++, dc1++) + for (i = 0 ; i < src->chain_size ; i++, sc1++, dc1++) { if (sc1->funcs) { @@ -176,7 +176,7 @@ _dich_func_clean_all(Eo_Class *klass) size_t i; Dich_Chain1 *chain1 = klass->chain; - for (i = 0 ; i <= DICH_CHAIN1(klass->base_id) ; i++, chain1++) + for (i = 0 ; i < klass->chain_size ; i++, chain1++) { if (chain1->funcs) free(chain1->funcs); |