aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/hardcopy.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-16 09:27:09 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-16 09:27:09 -0500
commit401d738597a3e25319f988af49ec1cd7a5cb0980 (patch)
tree9905d7f0bf53a03199408bbbac3b0bf6fd374c7b /src/nvim/hardcopy.c
parent5c6348e9995b0dde23a2de99263e9e0e3a72fcd2 (diff)
parent634d5d86a7cb249ca62795be06a6615705bdfb0b (diff)
downloadrneovim-401d738597a3e25319f988af49ec1cd7a5cb0980.tar.gz
rneovim-401d738597a3e25319f988af49ec1cd7a5cb0980.tar.bz2
rneovim-401d738597a3e25319f988af49ec1cd7a5cb0980.zip
Merge pull request #1803 from elmart/small-fixes
Small fixes.
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r--src/nvim/hardcopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c
index 993ec143bb..92abcbada4 100644
--- a/src/nvim/hardcopy.c
+++ b/src/nvim/hardcopy.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <string.h>
#include <inttypes.h>
+#include <stdint.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"
@@ -726,8 +727,7 @@ void ex_hardcopy(exarg_T *eap)
if (got_int || settings.user_abort)
goto print_fail;
- assert(prtpos.bytes_printed == 0
- || prtpos.bytes_printed * 100 > prtpos.bytes_printed);
+ assert(prtpos.bytes_printed <= SIZE_MAX / 100);
sprintf((char *)IObuff, _("Printing page %d (%zu%%)"),
page_count + 1 + side,
prtpos.bytes_printed * 100 / bytes_to_print);