aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/peerblk.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-12-19 16:56:34 +0000
committerMichael Brown <mcb30@ipxe.org>2023-12-19 16:56:34 +0000
commit3fc1b407d204e950a41c567e84f4c4f079cc052e (patch)
treea8397c3dcb94c2b16dd9221ead430c1302e52eb7 /src/net/peerblk.c
parent0958e01463f7ad6a532939e77712ed31b4a12dbc (diff)
downloadipxe-3fc1b407d204e950a41c567e84f4c4f079cc052e.tar.gz
[efi] Fix Coverity warning about unintended sign extension
The result of multiplying a uint16_t by another uint16_t will be a signed int. Comparing this against a size_t will perform an unwanted sign extension. Fix by explicitly casting e_phnum to an unsigned int, thereby matching the data type used for the loop index variable (and avoiding the unwanted sign extension). This mirrors wimboot commit 15f6162 ("[efi] Fix Coverity warning about unintended sign extension"). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/peerblk.c')
0 files changed, 0 insertions, 0 deletions