Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

*buf++ = (((n - 1 - i) >> 31) & '=') | *buf++ = (((n - 1 - i) >> 24) & '=') | aw-base64.h #24

Open
zhitian opened this issue May 27, 2017 · 3 comments

Comments

@zhitian
Copy link

zhitian commented May 27, 2017

*buf++ = (((n - 1 - i) >> 31) & '=') | *buf++ = (((n - 1 - i) >> 24) & '=') | aw-base64.h

@m8rge
Copy link
Owner

m8rge commented May 27, 2017

What is that?

@zhitian
Copy link
Author

zhitian commented Jun 6, 2017

Wrong in AW-base64.h

@adneskuo
Copy link

For windows, using bitshift with size_t (unsigned) value, ((size_t)-1)>>31 = 1.
I change argument 'size_t n' and variable 'size_t i' to 'int', do well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants