From 8b5755851611574fd4010d9fa4e1046b78a501b9 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 16 Apr 2020 19:25:35 +0200 Subject: make it build with -Wconversion --- alf/alfpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alf/alfpanel.cpp') diff --git a/alf/alfpanel.cpp b/alf/alfpanel.cpp index bd48721..9496e43 100644 --- a/alf/alfpanel.cpp +++ b/alf/alfpanel.cpp @@ -29,7 +29,7 @@ ALF_Panel_Paint(ALFPanelPriv *priv, HWND hwnd, HDC dc, RECT *r) if (textlen < 1) return; - TCHAR *textbuf = ALF_New(TCHAR, textlen + 1); + TCHAR *textbuf = ALF_New(TCHAR, (SIZE_T)textlen + 1); GetWindowText(hwnd, textbuf, textlen+1); HFONT oldFont = SelectFont(dc, priv->font); -- cgit v1.2.3