Take out len from condition check.
Otherwise, the check is just undefined behaviour. gcc even takes out this check because len can never be zero if len does not wrap around. Found with -Wstrict-overflow=2
Showing
想要评论请 注册 或 登录
Otherwise, the check is just undefined behaviour. gcc even takes out this check because len can never be zero if len does not wrap around. Found with -Wstrict-overflow=2