We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1a9c8a + 8483ec4 commit e547e2dCopy full SHA for e547e2d
opal/util/arch.c
@@ -67,7 +67,7 @@ static inline int32_t opal_arch_ldisintel( void )
67
j = j-1;
68
}
69
70
- return (pui[j] & (1 << i) ? 1 : 0);
+ return ((pui[j] & (1u << i)) ? 1 : 0);
71
72
73
static inline void opal_arch_setmask ( uint32_t *var, uint32_t mask)
opal/util/net.c
@@ -202,7 +202,7 @@ opal_net_init(void)
202
uint32_t
203
opal_net_prefix2netmask(uint32_t prefixlen)
204
{
205
- return htonl (((1 << prefixlen) - 1) << (32 - prefixlen));
+ return htonl (((1u << prefixlen) - 1u) << (32 - prefixlen));
206
207
208
0 commit comments