Skip to content
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

fix for casting with add #7790

Merged
merged 1 commit into from
Jul 25, 2024
Merged

fix for casting with add #7790

merged 1 commit into from
Jul 25, 2024

Conversation

JacobBarthelmeh
Copy link
Contributor

The compiler for PIC18F treated this as adding two byte types (throwing out the overflow) and then casting it to a word16 type. i.e 0xFF + 0x01 = 0x00 (where 0x100 gets thrown out) and then casted 0x00 to word16 type. Casting each to word16 first and then adding avoids this.

@JacobBarthelmeh JacobBarthelmeh self-assigned this Jul 25, 2024
@JacobBarthelmeh
Copy link
Contributor Author

retest this please Jenkins

@dgarske dgarske merged commit 42930b2 into wolfSSL:master Jul 25, 2024
121 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants