From 9b22e781cae6292316756d579714cf7ee2ce2f44 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 15 Apr 2022 15:24:05 +0900 Subject: [PATCH] Win32: Remove needless cast --- src/win32_window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index a4bda86f..cc8726af 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -559,9 +559,9 @@ static GLFWbool getImmPreedit(_GLFWwindow* window) int cblocks = window->cblocks; int focusedBlock = 0; int length = preeditBytes / sizeof(WCHAR); - LPWSTR buffer = (LPWSTR) _glfw_calloc(preeditBytes, 1); - LPSTR attributes = (LPSTR) _glfw_calloc(attrBytes, 1); - DWORD *clauses = (DWORD*) _glfw_calloc(clauseBytes, 1); + LPWSTR buffer = _glfw_calloc(preeditBytes, 1); + LPSTR attributes = _glfw_calloc(attrBytes, 1); + DWORD *clauses = _glfw_calloc(clauseBytes, 1); // get preedit data ImmGetCompositionStringW(hIMC, GCS_COMPSTR, buffer, preeditBytes);