-
Couldn't load subscription status.
- Fork 8k
Fix bad integer promotion in mysqlnd big5 charset #8743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hmm, even if |
|
We talked about it yesterday trying to understand why Sara's docker image to build releases doesn't compile for some people, and it seems the version of GCC which it currently uses (5.4.0) has a bug with the But I would also thing using But I would also have expected that a |
|
As @Girgias sayed I first started to look at this because Sara's docker reported me an error in this file on 8.1 and master (since the It was strange because on my machine I didn't had the error. So I first looked at the gcc version. Mine is To understand a bit more the problem I did some sample code to understand the problem and I came up with this : output is the same on both versions : So from my understanding when I convert an char to an unsigned it directly i got : |
|
@Girgias Juste to make sure
|
Oh, right! I have no particular opinion regarding casting to |
|
@cmb69 So do you think the patch is valid ? Or am I still missing something ? |
Erf I forgot |
be7b5fe to
df4dd82
Compare
Fix bad integer promotion that causes big5 functions to always return the same result.