Hi
cppcheck found 2 incorrect printf formats where
'long' variables were printed with %d and %x
instead of %ld and %lx.
Regards
Dominique
--
--
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/d/optout.
diff --git a/src/VisVim/Commands.cpp b/src/VisVim/Commands.cpp
index 111b163..569fbb8 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 b3f76af..8990b05 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
}