Hi, Dan:
Dan Carpenter 於 2025年1月8日 週三 下午5:36寫道:
>
> There is a type bug because the return statement:
>
> return ret < 0 ? ret : recv_cnt;
>
> The issue is that ret is an int, recv_cnt is a u32 and the function
> returns ssize_t, which is a signed long. The way that the type promotion
>
There is a type bug because the return statement:
return ret < 0 ? ret : recv_cnt;
The issue is that ret is an int, recv_cnt is a u32 and the function
returns ssize_t, which is a signed long. The way that the type promotion
works is that the negative error codes are first cast to u32 and