diff options
author | miod <> | 2015-07-16 02:18:58 +0000 |
---|---|---|
committer | miod <> | 2015-07-16 02:18:58 +0000 |
commit | e788fc75b28f97f30af63340858190d367d186b9 (patch) | |
tree | 827008cb88ff12d6e0a6ae0c904cb4f8c93b2b3b /src/lib/libcrypto/ui | |
parent | cb64b482f935b03613097ca01ae51a97bff1ec17 (diff) | |
download | openbsd-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/lib/libcrypto/ui')
0 files changed, 0 insertions, 0 deletions