提交 380857bf 编写于 作者: R Rich Felker

fix signed left-shift overflow in pthread_condattr_setpshared

上级 ad85fcb5
......@@ -4,6 +4,6 @@ int pthread_condattr_setpshared(pthread_condattr_t *a, int pshared)
{
if (pshared > 1U) return EINVAL;
a->__attr &= 0x7fffffff;
a->__attr |= pshared<<31;
a->__attr |= (unsigned)pshared<<31;
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册