Revision: 9839 https://osdn.net/projects/ttssh2/scm/svn/commits/9839 Author: zmatsuo Date: 2022-03-29 00:24:07 +0900 (Tue, 29 Mar 2022) Log Message: ----------- BuffScroll() を static 関数に変更 - BuffScroll() はこのファイル以外で使用されていなかった - 警告が出ないようにした buffer.c(281,33): warning C4267: '+=': 'size_t' から 'unsigned char' に変換しました。データが失われているかもしれません。 Modified Paths: -------------- trunk/teraterm/teraterm/buffer.c trunk/teraterm/teraterm/buffer.h -------------- next part -------------- Modified: trunk/teraterm/teraterm/buffer.c =================================================================== --- trunk/teraterm/teraterm/buffer.c 2022-03-25 13:38:59 UTC (rev 9838) +++ trunk/teraterm/teraterm/buffer.c 2022-03-28 15:24:07 UTC (rev 9839) @@ -278,7 +278,7 @@ i++; p->pCombinationChars16[i] = u16_str[1]; } - p->CombinationCharCount16 += wlen; + p->CombinationCharCount16 += (unsigned char)wlen; } } } @@ -652,7 +652,7 @@ BuffDiscardSavedScreen(); } -void BuffScroll(int Count, int Bottom) +static void BuffScroll(int Count, int Bottom) { int i, n; LONG SrcPtr, DestPtr; Modified: trunk/teraterm/teraterm/buffer.h =================================================================== --- trunk/teraterm/teraterm/buffer.h 2022-03-25 13:38:59 UTC (rev 9838) +++ trunk/teraterm/teraterm/buffer.h 2022-03-28 15:24:07 UTC (rev 9839) @@ -84,7 +84,6 @@ void BuffScreenSelect(); void BuffCancelSelection(); void ChangeSelectRegion(); -void BuffScroll(int Count, int Bottom); void BuffInsertSpace(int Count); void BuffEraseCurToEnd(); void BuffEraseHomeToCur();