Hi,
Back to normal patches from me :) Missing int casts for expression
using STRLEN()
diff --git a/src/eval.c b/src/eval.c
--- a/src/eval.c
+++ b/src/eval.c
@@ -10980,7 +10980,8 @@ f_function(argvars, rettv)
* also work, but some plugins depend on the name being
printable
* text. */
sprintf(sid_buf, "<SNR>%ld_", (long)current_SID);
- rettv->vval.v_string = alloc(STRLEN(sid_buf) + STRLEN(s + 2)
+ 1);
+ rettv->vval.v_string = alloc((int)(STRLEN(sid_buf) +
+ STRLEN(s +
2) + 1));
if (rettv->vval.v_string != NULL)
{
STRCPY(rettv->vval.v_string, sid_buf);
diff --git a/src/if_python.c b/src/if_python.c
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -1440,7 +1440,7 @@ find_module(char *fullname, char *tail,
if ((dot = (char *) vim_strchr((char_u *) tail, '.')))
{
/*
- * There is a dot in the name: call find_module recursively
without the
+ * There is a dot in the name: call find_module recursively
without the
* first component
*/
PyObject *newest_path;
@@ -1483,7 +1483,7 @@ find_module(char *fullname, char *tail,
if (!(module = call_load_module(
fullname,
- STRLEN(fullname),
+ (int)STRLEN(fullname),
find_module_result)))
{
Py_DECREF(find_module_result);
Mike
--
Yoghurt the Great, Yoghurt the All Powerful? No just plain yoghurt.
--
--
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.