Skip to content
Commit 69713f4e authored by Daniel Hajjar's avatar Daniel Hajjar Committed by Benjamin Cabé
Browse files

posix: net: Fix undefined behavior



The signedness of the variable caused undefined behavior because the
sign bit is modified when it gets left-shifted.

This fixes that by changing it to an unsigned variable.

Signed-off-by: default avatarDaniel Hajjar <daniel.hajjar16@gmail.com>
parent 2c66a2ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment