Skip to content

Commit 58ab18d

Browse files
committed
Avoiding Xcode warnings
1 parent 4a8d1cd commit 58ab18d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys_socket.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ class SocketIOControl {
129129
class GetInterfaceConf : public SocketIOControl<(unsigned long)SIOCGIFCONF, ifconf> {
130130
public:
131131
GetInterfaceConf(ifreq * dest, size_t size) {
132-
m_data.ifc_len = size * sizeof(ifreq);
132+
using lentype = decltype(m_data.ifc_len);
133+
m_data.ifc_len = lentype(size * sizeof(ifreq));
133134
m_data.ifc_req = dest;
134135
}
135136

0 commit comments

Comments
 (0)