summaryrefslogtreecommitdiff
path: root/src/os_amiga.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-29 15:51:30 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-29 15:51:30 +0200
commit11b73d668f6209acbe06988a804028c5c86799d2 (patch)
treebefc146fa851f6e6ad217701d02b65fb8ee19b46 /src/os_amiga.c
parent96b7ca5142d72d2c8e79d15f9c38f41d6657be40 (diff)
downloadvim-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_amiga.c')
-rw-r--r--src/os_amiga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_amiga.c b/src/os_amiga.c
index d84af4ce1..e2b157949 100644
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -191,16 +191,16 @@ mch_char_avail()
}
/*
- * Return amount of memory still available.
+ * Return amount of memory still available in Kbyte.
*/
long_u
mch_avail_mem(special)
int special;
{
#ifdef __amigaos4__
- return (long_u)AvailMem(MEMF_ANY);
+ return (long_u)AvailMem(MEMF_ANY) >> 10;
#else
- return (long_u)AvailMem(special ? (long)MEMF_CHIP : (long)MEMF_ANY);
+ return (long_u)(AvailMem(special ? (long)MEMF_CHIP : (long)MEMF_ANY)) >> 10;
#endif
}