Loading ...
Sorry, an error occurred while loading the content.

Windows 64bit warnings patch

Expand Messages
  • Mike Williams
    Hi, Back to normal patches from me :) Missing int casts for expression using STRLEN() diff --git a/src/eval.c b/src/eval.c ... +++ b/src/eval.c @@ -10980,7
    Message 1 of 2 , Jun 12, 2013
    • 0 Attachment
      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 vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Bram Moolenaar
      ... Thanks. One change moved to if_py_both.h -- Very funny, Scotty. Now beam down my clothes. /// Bram Moolenaar -- Bram@Moolenaar.net --
      Message 2 of 2 , Jun 12, 2013
      • 0 Attachment
        Mike Williams wrote:

        > Back to normal patches from me :) Missing int casts for expression
        > using STRLEN()

        Thanks. One change moved to if_py_both.h


        --
        Very funny, Scotty. Now beam down my clothes.

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ an exciting new programming language -- http://www.Zimbu.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --
        --
        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 vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.