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
Unsigned char narrowing conversion #66
Comments
I am also getting this problem when doing |
Can't say, I haven't tested it. |
Let me be your test bunny. I'll try and get back to you if the server runs or not. |
It does run, but I'm not sure if base32 still works as intended, and I haven't checked where base32 is used. |
Could someone tell me where in base32.cpp i should change |
Line 20. |
Yes, i have tried several combinations but i get the same error what ever i change. Should i change the whole line, should i only add signed before char and leave the rest, should i delete the whole line and only add signed char? Line 20 contained more than one word and when i still get the same error i assumed i did something wrong.
|
adclib/base64.cpp
containsBASE32_table[]
defined asconst char
, filled with-1
values.At least on my compiler,
char
isunsigned char
and I get an error:base32.cpp:20:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
.Changing
char
tosigned char
solves the issue but I didn't test if base32 still works correctly after this modification.The text was updated successfully, but these errors were encountered: