I have found and fix a warning when compile for 64bit environment.
It was happend for *dynamic* Python2 and 64bit environment,
because third parameter of PyString_AsStringAndSize is expected as Py_ssize_t*,
but it is defined as int* by stub macro of dynamic Python.


Please check attached patch.

-- 
-- 
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/groups/opt_out.


# HG changeset patch
# Parent 420704bc419137ac4361ebe891f91ffbb2aa1bc3
diff -r 420704bc4191 -r fe84b2ecda5c src/if_python.c
--- a/src/if_python.c	Mon Jun 24 08:28:47 2013 +0900
+++ b/src/if_python.c	Mon Jun 24 08:36:25 2013 +0900
@@ -365,7 +365,7 @@
 static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *);
 static PyObject* (*dll_PyObject_Repr)(PyObject *);
 static char*(*dll_PyString_AsString)(PyObject *);
-static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, int *);
+static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, Py_ssize_t *);
 static PyObject*(*dll_PyString_FromString)(const char *);
 static PyObject*(*dll_PyString_FromFormat)(const char *, ...);
 static PyObject*(*dll_PyString_FromStringAndSize)(const char *, PyInt);

Raspunde prin e-mail lui