summaryrefslogtreecommitdiff
path: root/src/win32/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r--src/win32/windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp
index 6568e860e..9ea3dad09 100644
--- a/src/win32/windows.cpp
+++ b/src/win32/windows.cpp
@@ -47,7 +47,7 @@ int inet_pton(int af, const char *src, void *dst)
return -1;
}
- if (!WSAStringToAddress((LPSTR) src, af, NULL, reinterpret_cast<LPSOCKADDR>(&sa), &address_length))
+ if (!WSAStringToAddress(static_cast<LPSTR>(const_cast<char *>(src)), af, NULL, reinterpret_cast<LPSOCKADDR>(&sa), &address_length))
{
switch (af)
{