aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/win32
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-04-24 13:30:00 +0200
committerJohn Högberg <[email protected]>2018-04-24 14:20:06 +0200
commit05b1c13e36ec49891e89593b25e668e983a4fc41 (patch)
treec5c8474cfbf9516fe1818bbfb66757057bdfcb9b /erts/etc/win32
parent74a95b3d511177a9b35c2b0272b9ca5511b6f750 (diff)
downloadotp-05b1c13e36ec49891e89593b25e668e983a4fc41.tar.gz
otp-05b1c13e36ec49891e89593b25e668e983a4fc41.tar.bz2
otp-05b1c13e36ec49891e89593b25e668e983a4fc41.zip
heart: Use ntohs instead of manual conversion
Multiplying a signed char by 256 is undefined behavior and caused problems on some platforms when the length was long enough. We could cast it to an unsigned int to make it work, but it's best not to reinvent the wheel. Fixes OTP-15034
Diffstat (limited to 'erts/etc/win32')
0 files changed, 0 insertions, 0 deletions