From: Bram Moolenaar Date: Thu, 2 Jun 2016 20:27:08 +0000 (+0200) Subject: patch 7.4.1883 X-Git-Tag: v7.4.1883 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea0345901cc2af29f9c5dd0d9d8a818d5f96a63b;p=vim patch 7.4.1883 Problem: Cppcheck found 2 incorrect printf formats. Solution: Use %ld and %lx. (Dominique Pelle) --- diff --git a/src/VisVim/Commands.cpp b/src/VisVim/Commands.cpp index 111b163c4..569fbb87d 100644 --- a/src/VisVim/Commands.cpp +++ b/src/VisVim/Commands.cpp @@ -575,7 +575,7 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr) if (LineNr > 0) { // Goto line - sprintf(VimCmd, ":%d\n", LineNr); + sprintf(VimCmd, ":%ld\n", LineNr); if (! VimOle.Method(DispatchId, "s", TO_OLE_STR_BUF(VimCmd, Buf))) goto OleError; } diff --git a/src/gui_mac.c b/src/gui_mac.c index b3f76af70..8990b0566 100644 --- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -5040,7 +5040,7 @@ gui_mch_set_scrollbar_thumb( SetControl32BitValue (sb->id, val); SetControlViewSize (sb->id, size); #ifdef DEBUG_MAC_SB - printf("thumb_sb (%x) %x, %x,%x\n",sb->id, val, size, max); + printf("thumb_sb (%x) %lx, %lx,%lx\n",sb->id, val, size, max); #endif } diff --git a/src/version.c b/src/version.c index 5a84b80fd..6278002e9 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1883, /**/ 1882, /**/