0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

updated for version 7.3.577

Problem:    Size of memory does not fit in 32 bit unsigned.
Solution:   Use Kbyte instead of byte.  Call GlobalMemoryStatusEx() instead of
            GlobalMemoryStatus() when available.
This commit is contained in:
Bram Moolenaar
2012-06-29 15:51:30 +02:00
parent 96b7ca5142
commit 11b73d668f
7 changed files with 31 additions and 17 deletions

View File

@@ -550,15 +550,15 @@ mch_update_cursor(void)
#endif
/*
* Return amount of memory currently available.
* Return amount of memory currently available in Kbyte.
*/
long_u
mch_avail_mem(int special)
{
#ifdef DJGPP
return _go32_dpmi_remaining_virtual_memory();
return _go32_dpmi_remaining_virtual_memory() >> 10;
#else
return coreleft();
return coreleft() >> 10;
#endif
}