From 3b877e54ae7e850fc3b336d68238b60c2bc8c677 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Sat, 1 Aug 2020 10:54:20 -0700 Subject: [PATCH] [posix] fix macOS build with PLATFORM_NETIF=1 (#5318) --- src/posix/platform/netif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/platform/netif.cpp b/src/posix/platform/netif.cpp index f9c6b1d6a..3176e85d0 100644 --- a/src/posix/platform/netif.cpp +++ b/src/posix/platform/netif.cpp @@ -292,8 +292,8 @@ static void InitNetaskWithPrefixLength(struct in6_addr *address, uint8_t prefixL static uint8_t NetmaskToPrefixLength(const struct sockaddr_in6 *netmask) { - return otIp6PrefixMatch(static_cast(netmask->sin6_addr.s6_addr), - static_cast(allOnes)); + return otIp6PrefixMatch(reinterpret_cast(netmask->sin6_addr.s6_addr), + reinterpret_cast(allOnes)); } #endif