Mercurial > vim
comparison src/insexpand.c @ 29425:722a50132db9 v9.0.0054
patch 9.0.0054: compiler warning for size_t to int conversion
Commit: https://github.com/vim/vim/commit/c7bd2f08e531f08723cdc677212a3633d11c9a97
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 15 20:45:20 2022 +0100
patch 9.0.0054: compiler warning for size_t to int conversion
Problem: Compiler warning for size_t to int conversion.
Solution: Add type cast. (Mike Williams, closes https://github.com/vim/vim/issues/10741)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 15 Jul 2022 22:00:06 +0200 |
parents | c12fb2c5b1b3 |
children | 6888567953ca |
comparison
equal
deleted
inserted
replaced
29424:8cef2a0f3454 | 29425:722a50132db9 |
---|---|
641 // getting to six bytes from the edge of IObuff switch to using a | 641 // getting to six bytes from the edge of IObuff switch to using a |
642 // growarray. Add the character in the next round. | 642 // growarray. Add the character in the next round. |
643 if (ga_grow(&gap, IOSIZE) == FAIL) | 643 if (ga_grow(&gap, IOSIZE) == FAIL) |
644 return (char_u *)"[failed]"; | 644 return (char_u *)"[failed]"; |
645 STRCPY(gap.ga_data, IObuff); | 645 STRCPY(gap.ga_data, IObuff); |
646 gap.ga_len = STRLEN(IObuff); | 646 gap.ga_len = (int)STRLEN(IObuff); |
647 } | 647 } |
648 else if (has_mbyte) | 648 else if (has_mbyte) |
649 p += (*mb_char2bytes)(wca[i++], p); | 649 p += (*mb_char2bytes)(wca[i++], p); |
650 else | 650 else |
651 *(p++) = wca[i++]; | 651 *(p++) = wca[i++]; |