0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

Fix definition of UINT_PTR for 64 bit systems.

This commit is contained in:
Bram Moolenaar
2010-05-26 21:42:54 +02:00
parent 6a18eb6f62
commit 167632fcdd
4 changed files with 10 additions and 4 deletions

View File

@@ -183,9 +183,10 @@
# define ID_BEVAL_TOOLTIP 200
# define BEVAL_TEXT_LEN MAXPATHL
#if _MSC_VER < 1300 || !defined(UINT_PTR)
#if (defined(_MSC_VER) && _MSC_VER < 1300) || !defined(MAXULONG_PTR)
/* Work around old versions of basetsd.h which wrongly declares
* UINT_PTR as unsigned long. */
# undef UINT_PTR
# define UINT_PTR UINT
#endif
@@ -4697,7 +4698,7 @@ gui_mch_enable_beval_area(beval)
if (beval == NULL)
return;
// TRACE0("gui_mch_enable_beval_area {{{");
BevalTimerId = SetTimer(s_textArea, 0, p_bdlay / 2, BevalTimerProc);
BevalTimerId = SetTimer(s_textArea, 0, (UINT)(p_bdlay / 2), BevalTimerProc);
// TRACE0("gui_mch_enable_beval_area }}}");
}