diff options
author | Lukas Larsson <[email protected]> | 2014-12-15 17:26:01 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-12-15 17:26:01 +0100 |
commit | b94fe0f28d68747a2e9b78101f91b86b37c8f83b (patch) | |
tree | 47c67b51d6e4f085bcb5871d8d39ad8c8ab55306 /bin | |
parent | fb064173870a75d80402c3ad1e48dbaf59f086fb (diff) | |
download | otp-b94fe0f28d68747a2e9b78101f91b86b37c8f83b.tar.gz otp-b94fe0f28d68747a2e9b78101f91b86b37c8f83b.tar.bz2 otp-b94fe0f28d68747a2e9b78101f91b86b37c8f83b.zip |
erts: Fix big-endian issue with printf_putc
On little-endian machines, doing &int will give the smallest
byte which is what we want to give to write. But on big-endian
it will give the highest byte, which will always be \000 here
which results in write never doing any writes.
So we have to cast c to an unsigned char before passing it to
write.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions