Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gloo/common/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
constexpr auto link_mode_data_nwords = 3 * 127;
struct {
struct ethtool_link_settings req;
__u32 link_mode_data[link_mode_data_nwords];
struct ethtool_link_settings req;
} ecmd;
Comment on lines 189 to 193
int rv;

Expand Down
1 change: 1 addition & 0 deletions gloo/transport/tcp/device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <array>

#include "gloo/common/linux.h"
#include "gloo/common/logging.h"
Expand Down
3 changes: 1 addition & 2 deletions gloo/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ inline float cpu_half2float(float16 h) {

unsigned temp = ((sign << 31) | (exponent << 23) | mantissa);

void* rp = &temp;
return *(float*)rp;
return (float)temp;
Comment on lines 321 to +323
}

} // namespace gloo