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
ltc_ecc_mul2add.c integer sign issue #90
Comments
well, very stupid idea but have you tried |
Looking at the code - https://github.com/libtom/libtomcrypt/blob/develop/src/pk/ecc/ltc_ecc_mul2add.c#L37 - it seems that changing the type of Something like this (not tested yet):
Note: |
Or should we probably rewrite the implementation to be more clear?
|
I have tested that the following works without warnings:
Should I send a PR or do we want to change the implementation? |
I'm fine with the fix |
I got the following compiler warning:
The code in question:
It seems that we are assigning
-1
tounsigned
integer.I have not investigated yet what would be the best fix.
--Karel
The text was updated successfully, but these errors were encountered: