diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-06-29 15:51:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-06-29 15:51:30 +0200 |
commit | 11b73d668f6209acbe06988a804028c5c86799d2 (patch) | |
tree | befc146fa851f6e6ad217701d02b65fb8ee19b46 /src/os_msdos.c | |
parent | 96b7ca5142d72d2c8e79d15f9c38f41d6657be40 (diff) | |
download | vim-git-11b73d668f6209acbe06988a804028c5c86799d2.tar.gz |
updated for version 7.3.577v7.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.
Diffstat (limited to 'src/os_msdos.c')
-rw-r--r-- | src/os_msdos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_msdos.c b/src/os_msdos.c index 3449d23b9..2d1cf73dd 100644 --- a/src/os_msdos.c +++ b/src/os_msdos.c @@ -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 } |