summaryrefslogtreecommitdiffstats
path: root/lib/libm/src
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-07-16 02:18:58 +0000
committermiod <miod@openbsd.org>2015-07-16 02:18:58 +0000
commite7f1e497a35fbc0ad5a9162e5340fcff917b6e3c (patch)
treeb3b18d6bb17e036380bf2a6ca23784c124dcbfab /lib/libm/src
parentCheck return value of all used functions in OCSP_REQUEST_print(); covers (diff)
downloadwireguard-openbsd-e7f1e497a35fbc0ad5a9162e5340fcff917b6e3c.tar.xz
wireguard-openbsd-e7f1e497a35fbc0ad5a9162e5340fcff917b6e3c.zip
Explicitely cast a char into unsigned long before shifting it left by 24, for
this would promote it to int for the shift, and then cast to unsigned long, sign-extending it if sizeof(long) > sizeof(int). This was not a problem because the computed value was explicitely range checked afterwards, with an upper bound way smaller than 1U<<31, but it's better practice to cast correctly. ok beck@
Diffstat (limited to 'lib/libm/src')
0 files changed, 0 insertions, 0 deletions