aboutsummaryrefslogtreecommitdiff
path: root/src/memory.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-05-02 21:35:00 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-05-04 12:40:27 -0400
commitddafdacb0046f5cd95b3023ced4d86073b0039f6 (patch)
treea86b6b5aca6bb194cf9b8f413a28a56651014ed8 /src/memory.c
parenta9e6098637e63c56209047707c6631da7b9ca409 (diff)
downloadrneovim-ddafdacb0046f5cd95b3023ced4d86073b0039f6.tar.gz
rneovim-ddafdacb0046f5cd95b3023ced4d86073b0039f6.tar.bz2
rneovim-ddafdacb0046f5cd95b3023ced4d86073b0039f6.zip
Use portable format specifiers: Case %lu - localized - EMSGU.
Problem EMSGN was being used to print a format string using "%lu", which is incorrect because EMSGN casts its argument to int64_t. Solution Use EMGSU instead.
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory.c b/src/memory.c
index 9e527bc513..14eba71a01 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -235,7 +235,7 @@ void do_outofmem_msg(long_u size)
* message fails, e.g. when setting v:errmsg. */
did_outofmem_msg = TRUE;
- EMSGN(_("E342: Out of memory! (allocating %" PRIu64 " bytes)"), size);
+ EMSGU(_("E342: Out of memory! (allocating %" PRIu64 " bytes)"), size);
}
}