[Ttssh2-commit] [8302] 64bitビルド時のコンパイラ警告対策

scmno****@osdn***** scmno****@osdn*****
2019年 10月 15日 (火) 01:13:09 JST


Revision: 8302
          https://osdn.net/projects/ttssh2/scm/svn/commits/8302
Author:   zmatsuo
Date:     2019-10-15 01:13:08 +0900 (Tue, 15 Oct 2019)
Log Message:
-----------
64bitビルド時のコンパイラ警告対策

Modified Paths:
--------------
    trunk/teraterm/common/tipwin.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/tipwin.cpp
===================================================================
--- trunk/teraterm/common/tipwin.cpp	2019-10-14 16:12:57 UTC (rev 8301)
+++ trunk/teraterm/common/tipwin.cpp	2019-10-14 16:13:08 UTC (rev 8302)
@@ -89,7 +89,7 @@
 	SelectObject(hdc, tWin->tip_font);
 	tWin->str_rect.top = 0;
 	tWin->str_rect.left = 0;
-	DrawText(hdc, tWin->str, tWin->str_len,
+	DrawText(hdc, tWin->str, (int)tWin->str_len,
 			 &tWin->str_rect, DT_LEFT|DT_CALCRECT);
 	DeleteDC(hdc);
 }
@@ -139,7 +139,7 @@
 					rect.right = rect.right + TIP_WIN_FRAME_WIDTH;
 					rect.top = rect.top + TIP_WIN_FRAME_WIDTH;
 					rect.bottom = rect.bottom + TIP_WIN_FRAME_WIDTH;
-					DrawText(hdc, self->tWin->str, self->tWin->str_len, &rect, DT_LEFT);
+					DrawText(hdc, self->tWin->str, (int)self->tWin->str_len, &rect, DT_LEFT);
 				}
 
 				SelectObject(hdc, holdbr);
@@ -380,7 +380,7 @@
 	SelectObject(hdc, tip_font);
 	str_rect.top = 0;
 	str_rect.left = 0;
-	DrawText(hdc, str, str_len, &str_rect, DT_LEFT|DT_CALCRECT);
+	DrawText(hdc, str, (int)str_len, &str_rect, DT_LEFT|DT_CALCRECT);
 	*width = str_rect.right - str_rect.left;
 	*height = str_rect.bottom - str_rect.top;
 	DeleteDC(hdc);


Ttssh2-commit メーリングリストの案内