One asterisk too many, compilable patch now attached.
Mike
--
Just when you thought you were winning the rat race, along comes a
faster rat.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/if_py_both.h b/src/if_py_both.h
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -747,12 +747,13 @@ VimToPython(typval_T *our_tv, int depth,
else if (our_tv->v_type == VAR_DICT)
{
- hashtab_T *ht = &our_tv->vval.v_dict->dv_hashtab;
- long_u todo = ht->ht_used;
+ hashtab_T *ht;
+ long_u todo;
hashitem_T *hi;
dictitem_T *di;
if (our_tv->vval.v_dict == NULL)
return NULL;
+ ht = &our_tv->vval.v_dict->dv_hashtab;
if (!(ret = PyDict_New()))
return NULL;
@@ -763,6 +764,7 @@ VimToPython(typval_T *our_tv, int depth,
return NULL;
}
+ todo = ht->ht_used;
for (hi = ht->ht_array; todo > 0; ++hi)
{
if (!HASHITEM_EMPTY(hi))