summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/engine.c
diff options
context:
space:
mode:
authormiod <>2015-07-16 02:18:58 +0000
committermiod <>2015-07-16 02:18:58 +0000
commite788fc75b28f97f30af63340858190d367d186b9 (patch)
tree827008cb88ff12d6e0a6ae0c904cb4f8c93b2b3b /src/usr.bin/openssl/engine.c
parentcb64b482f935b03613097ca01ae51a97bff1ec17 (diff)
downloadopenbsd-e788fc75b28f97f30af63340858190d367d186b9.tar.gz
openbsd-e788fc75b28f97f30af63340858190d367d186b9.tar.bz2
openbsd-e788fc75b28f97f30af63340858190d367d186b9.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 'src/usr.bin/openssl/engine.c')
0 files changed, 0 insertions, 0 deletions