From 65a9fa59dcb442a23a8e01cdd1ee86d03f0b6957 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 2 Jun 2011 19:42:24 +0200 Subject: Remove unnecessary typecast --- lib/idn_win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/idn_win32.c') diff --git a/lib/idn_win32.c b/lib/idn_win32.c index 74abfb6d0..96d3f0959 100644 --- a/lib/idn_win32.c +++ b/lib/idn_win32.c @@ -43,7 +43,7 @@ static wchar_t *_curl_win32_UTF8_to_wchar(const char *str_utf8) int str_w_len = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str_utf8, -1, NULL, 0); if(str_w_len) { - str_w = (wchar_t *) malloc(str_w_len * sizeof(wchar_t)); + str_w = malloc(str_w_len * sizeof(wchar_t)); if(str_w) { if(MultiByteToWideChar(CP_UTF8, 0, str_utf8, -1, str_w, str_w_len) == 0) { @@ -65,7 +65,7 @@ static const char *_curl_win32_wchar_to_UTF8(const wchar_t *str_w) size_t str_utf8_len = WideCharToMultiByte(CP_UTF8, 0, str_w, -1, NULL, 0, NULL, NULL); if(str_utf8_len) { - str_utf8 = (char *) malloc(str_utf8_len * sizeof(wchar_t)); + str_utf8 = malloc(str_utf8_len * sizeof(wchar_t)); if(str_utf8) { if(WideCharToMultiByte(CP_UTF8, 0, str_w, -1, str_utf8, str_utf8_len, NULL, FALSE) == 0) { -- cgit v1.2.3