We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8d1cd commit 58ab18dCopy full SHA for 58ab18d
src/sys_socket.h
@@ -129,7 +129,8 @@ class SocketIOControl {
129
class GetInterfaceConf : public SocketIOControl<(unsigned long)SIOCGIFCONF, ifconf> {
130
public:
131
GetInterfaceConf(ifreq * dest, size_t size) {
132
- m_data.ifc_len = size * sizeof(ifreq);
+ using lentype = decltype(m_data.ifc_len);
133
+ m_data.ifc_len = lentype(size * sizeof(ifreq));
134
m_data.ifc_req = dest;
135
}
136
0 commit comments