Skip to content

fix for casting with add#7790

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:random
Jul 25, 2024
Merged

fix for casting with add#7790
dgarske merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:random

Conversation

@JacobBarthelmeh
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

retest this please Jenkins

@dgarske dgarske merged commit 42930b2 into wolfSSL:master Jul 25, 2024
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