Mercurial > vim
comparison src/version.c @ 27523:4c7bb6fd383f v8.2.4289
patch 8.2.4289: warnings reported by MSVC
Commit: https://github.com/vim/vim/commit/5411910c77cba85212963a2fb71d8c71f8a5d203
Author: K.Takata <kentkt@csc.jp>
Date: Thu Feb 3 13:33:03 2022 +0000
patch 8.2.4289: warnings reported by MSVC
Problem: Warnings reported by MSVC.
Solution: Rename variables and other fixes. (Ken Takata, closes https://github.com/vim/vim/issues/9689)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Feb 2022 14:45:03 +0100 |
parents | 3ad379c0ab28 |
children | 27694b525305 |
comparison
equal
deleted
inserted
replaced
27522:19898d468c67 | 27523:4c7bb6fd383f |
---|---|
744 NULL | 744 NULL |
745 }; | 745 }; |
746 | 746 |
747 static int included_patches[] = | 747 static int included_patches[] = |
748 { /* Add new patch number below this line */ | 748 { /* Add new patch number below this line */ |
749 /**/ | |
750 4289, | |
749 /**/ | 751 /**/ |
750 4288, | 752 4288, |
751 /**/ | 753 /**/ |
752 4287, | 754 4287, |
753 /**/ | 755 /**/ |
9466 } | 9468 } |
9467 | 9469 |
9468 // The rightmost column doesn't need a separator. | 9470 // The rightmost column doesn't need a separator. |
9469 // Sacrifice it to fit in one more column if possible. | 9471 // Sacrifice it to fit in one more column if possible. |
9470 ncol = (int) (Columns + 1) / width; | 9472 ncol = (int) (Columns + 1) / width; |
9471 nrow = item_count / ncol + (item_count % ncol ? 1 : 0); | 9473 nrow = item_count / ncol + ((item_count % ncol) ? 1 : 0); |
9472 | 9474 |
9473 // "i" counts columns then rows. "idx" counts rows then columns. | 9475 // "i" counts columns then rows. "idx" counts rows then columns. |
9474 for (i = 0; !got_int && i < nrow * ncol; ++i) | 9476 for (i = 0; !got_int && i < nrow * ncol; ++i) |
9475 { | 9477 { |
9476 int idx = (i / ncol) + (i % ncol) * nrow; | 9478 int idx = (i / ncol) + (i % ncol) * nrow; |