aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-05-24 01:17:42 +0200
committerEliseo Martínez <eliseomarmol@gmail.com>2014-05-24 01:17:42 +0200
commit95c3300ca645f60098218965b1afd45352917eb8 (patch)
treea665b1d600e0527749e1f1ac559d217ae0363a59 /src/nvim/memory.c
parent9e95c8aa331e3872253e7a06be32103b440bc97f (diff)
downloadrneovim-95c3300ca645f60098218965b1afd45352917eb8.tar.gz
rneovim-95c3300ca645f60098218965b1afd45352917eb8.tar.bz2
rneovim-95c3300ca645f60098218965b1afd45352917eb8.zip
Remove long_u: do_outofmem_msg().
Remove long_u occurrences due to do_outofmem_msg() function. Refactor size parameter from long_u into size_t.
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index 9bfb12e0ee..b6990890a6 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -84,7 +84,7 @@ void *verbose_try_malloc(size_t size)
{
void *ret = try_malloc(size);
if (!ret) {
- do_outofmem_msg((long_u)size);
+ do_outofmem_msg(size);
}
return ret;
}
@@ -214,7 +214,7 @@ void *xmemdup(const void *data, size_t len)
* Avoid repeating the error message many times (they take 1 second each).
* Did_outofmem_msg is reset when a character is read.
*/
-void do_outofmem_msg(long_u size)
+void do_outofmem_msg(size_t size)
{
if (!did_outofmem_msg) {
/* Don't hide this message */