summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-17 17:13:30 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-17 17:13:30 +0100
commit88c86eb751de9e7e410b405084d35b32fafc2a24 (patch)
treecf0c456ba4a4f0455fdcae1452e10716ae23a53c /src/ops.c
parent4131fd5509b283e978e8c6161f09643b64719787 (diff)
downloadvim-git-88c86eb751de9e7e410b405084d35b32fafc2a24.tar.gz
patch 8.1.0766: various problems when using Vim on VMSv8.1.0766
Problem: Various problems when using Vim on VMS. Solution: Various fixes. Define long_long_T. (Zoltan Arpadffy)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/ops.c b/src/ops.c
index 8a106ebca..3818b68e5 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -6036,16 +6036,16 @@ do_addsub(
}
else if (pre == 0)
vim_snprintf((char *)buf2, NUMBUFLEN, "%llu",
- (long long unsigned)n);
+ (long_long_u_T)n);
else if (pre == '0')
vim_snprintf((char *)buf2, NUMBUFLEN, "%llo",
- (long long unsigned)n);
+ (long_long_u_T)n);
else if (pre && hexupper)
vim_snprintf((char *)buf2, NUMBUFLEN, "%llX",
- (long long unsigned)n);
+ (long_long_u_T)n);
else
vim_snprintf((char *)buf2, NUMBUFLEN, "%llx",
- (long long unsigned)n);
+ (long_long_u_T)n);
length -= (int)STRLEN(buf2);
/*
@@ -7558,21 +7558,21 @@ cursor_pos_info(dict_T *dict)
_("Selected %s%ld of %ld Lines; %lld of %lld Words; %lld of %lld Bytes"),
buf1, line_count_selected,
(long)curbuf->b_ml.ml_line_count,
- (long long)word_count_cursor,
- (long long)word_count,
- (long long)byte_count_cursor,
- (long long)byte_count);
+ (long_long_T)word_count_cursor,
+ (long_long_T)word_count,
+ (long_long_T)byte_count_cursor,
+ (long_long_T)byte_count);
else
vim_snprintf((char *)IObuff, IOSIZE,
_("Selected %s%ld of %ld Lines; %lld of %lld Words; %lld of %lld Chars; %lld of %lld Bytes"),
buf1, line_count_selected,
(long)curbuf->b_ml.ml_line_count,
- (long long)word_count_cursor,
- (long long)word_count,
- (long long)char_count_cursor,
- (long long)char_count,
- (long long)byte_count_cursor,
- (long long)byte_count);
+ (long_long_T)word_count_cursor,
+ (long_long_T)word_count,
+ (long_long_T)char_count_cursor,
+ (long_long_T)char_count,
+ (long_long_T)byte_count_cursor,
+ (long_long_T)byte_count);
}
else
{
@@ -7590,17 +7590,17 @@ cursor_pos_info(dict_T *dict)
(char *)buf1, (char *)buf2,
(long)curwin->w_cursor.lnum,
(long)curbuf->b_ml.ml_line_count,
- (long long)word_count_cursor, (long long)word_count,
- (long long)byte_count_cursor, (long long)byte_count);
+ (long_long_T)word_count_cursor, (long_long_T)word_count,
+ (long_long_T)byte_count_cursor, (long_long_T)byte_count);
else
vim_snprintf((char *)IObuff, IOSIZE,
_("Col %s of %s; Line %ld of %ld; Word %lld of %lld; Char %lld of %lld; Byte %lld of %lld"),
(char *)buf1, (char *)buf2,
(long)curwin->w_cursor.lnum,
(long)curbuf->b_ml.ml_line_count,
- (long long)word_count_cursor, (long long)word_count,
- (long long)char_count_cursor, (long long)char_count,
- (long long)byte_count_cursor, (long long)byte_count);
+ (long_long_T)word_count_cursor, (long_long_T)word_count,
+ (long_long_T)char_count_cursor, (long_long_T)char_count,
+ (long_long_T)byte_count_cursor, (long_long_T)byte_count);
}
}
@@ -7608,7 +7608,7 @@ cursor_pos_info(dict_T *dict)
bom_count = bomb_size();
if (bom_count > 0)
vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE,
- _("(+%lld for BOM)"), (long long)bom_count);
+ _("(+%lld for BOM)"), (long_long_T)bom_count);
#endif
if (dict == NULL)
{