changeset 3636:0e9b2622c94a v7.3.578

updated for version 7.3.578 Problem: Misplaced declaration. Solution: Move declaration to start of block.
author Bram Moolenaar <bram@vim.org>
date Fri, 29 Jun 2012 16:19:50 +0200
parents e57accfea24e
children d89729d89569
files src/if_py_both.h src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -818,21 +818,21 @@ DictionaryAssItem(PyObject *self, PyObje
 
     if (valObject == NULL)
     {
+	hashitem_T	*hi;
+
 	if (di == NULL)
 	{
 	    PyErr_SetString(PyExc_IndexError, _("no such key in dictionary"));
 	    return -1;
 	}
-	hashitem_T	*hi = hash_find(&d->dv_hashtab, di->di_key);
+	hi = hash_find(&d->dv_hashtab, di->di_key);
 	hash_remove(&d->dv_hashtab, hi);
 	dictitem_free(di);
 	return 0;
     }
 
     if (ConvertFromPyObject(valObject, &tv) == -1)
-    {
 	return -1;
-    }
 
     if (di == NULL)
     {
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    578,
+/**/
     577,
 /**/
     576,