@@ -5976,13 +5976,17 @@ do_addsub(
59765976 buf2 [i ] = '\0' ;
59775977 }
59785978 else if (pre == 0 )
5979- vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llu" , n );
5979+ vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llu" ,
5980+ (long long unsigned )n );
59805981 else if (pre == '0' )
5981- vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llo" , n );
5982+ vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llo" ,
5983+ (long long unsigned )n );
59825984 else if (pre && hexupper )
5983- vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llX" , n );
5985+ vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llX" ,
5986+ (long long unsigned )n );
59845987 else
5985- vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llx" , n );
5988+ vim_snprintf ((char * )buf2 , NUMBUFLEN , "%llx" ,
5989+ (long long unsigned )n );
59865990 length -= (int )STRLEN (buf2 );
59875991
59885992 /*
@@ -7501,16 +7505,21 @@ cursor_pos_info(dict_T *dict)
75017505 _ ("Selected %s%ld of %ld Lines; %lld of %lld Words; %lld of %lld Bytes" ),
75027506 buf1 , line_count_selected ,
75037507 (long )curbuf -> b_ml .ml_line_count ,
7504- word_count_cursor , word_count ,
7505- byte_count_cursor , byte_count );
7508+ (long long )word_count_cursor ,
7509+ (long long )word_count ,
7510+ (long long )byte_count_cursor ,
7511+ (long long )byte_count );
75067512 else
75077513 vim_snprintf ((char * )IObuff , IOSIZE ,
75087514 _ ("Selected %s%ld of %ld Lines; %lld of %lld Words; %lld of %lld Chars; %lld of %lld Bytes" ),
75097515 buf1 , line_count_selected ,
75107516 (long )curbuf -> b_ml .ml_line_count ,
7511- word_count_cursor , word_count ,
7512- char_count_cursor , char_count ,
7513- byte_count_cursor , byte_count );
7517+ (long long )word_count_cursor ,
7518+ (long long )word_count ,
7519+ (long long )char_count_cursor ,
7520+ (long long )char_count ,
7521+ (long long )byte_count_cursor ,
7522+ (long long )byte_count );
75147523 }
75157524 else
75167525 {
@@ -7528,17 +7537,17 @@ cursor_pos_info(dict_T *dict)
75287537 (char * )buf1 , (char * )buf2 ,
75297538 (long )curwin -> w_cursor .lnum ,
75307539 (long )curbuf -> b_ml .ml_line_count ,
7531- word_count_cursor , word_count ,
7532- byte_count_cursor , byte_count );
7540+ ( long long ) word_count_cursor , ( long long ) word_count ,
7541+ ( long long ) byte_count_cursor , ( long long ) byte_count );
75337542 else
75347543 vim_snprintf ((char * )IObuff , IOSIZE ,
75357544 _ ("Col %s of %s; Line %ld of %ld; Word %lld of %lld; Char %lld of %lld; Byte %lld of %lld" ),
75367545 (char * )buf1 , (char * )buf2 ,
75377546 (long )curwin -> w_cursor .lnum ,
75387547 (long )curbuf -> b_ml .ml_line_count ,
7539- word_count_cursor , word_count ,
7540- char_count_cursor , char_count ,
7541- byte_count_cursor , byte_count );
7548+ ( long long ) word_count_cursor , ( long long ) word_count ,
7549+ ( long long ) char_count_cursor , ( long long ) char_count ,
7550+ ( long long ) byte_count_cursor , ( long long ) byte_count );
75427551 }
75437552 }
75447553
0 commit comments