diff options
author | phoebos <ben@bvnf.space> | 2021-07-18 18:52:50 +0100 |
---|---|---|
committer | phoebos <ben@bvnf.space> | 2021-07-18 18:52:50 +0100 |
commit | 5f9b81f1de231521d1922abb7026fc230c52b76f (patch) | |
tree | 1882b181ac66f847ba18f9425b12a7291c080f6a /1.6.c | |
parent | e6a1f14c205782f9ee8580575185cf6e74428bdc (diff) | |
download | kandr-5f9b81f1de231521d1922abb7026fc230c52b76f.tar.gz |
base64: use unsigned chars
With signed chars, if the highest bit is set, a left-shift causes the new highest bit to be set also, which makes the result 128 larger than it should be. This is only a problem for chars > 127, which excludes ascii. Therefore, this commit *should* make the program work with unicode and binary data.
Diffstat (limited to '1.6.c')
0 files changed, 0 insertions, 0 deletions