Skip to content

Casting cleanup, Java side#99

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
cconlon:castingCleanup
Feb 23, 2022
Merged

Casting cleanup, Java side#99
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
cconlon:castingCleanup

Conversation

@cconlon
Copy link
Copy Markdown
Member

@cconlon cconlon commented Feb 15, 2022

This PR addresses a few missed casting cleanup issues, related to #98.

On some platforms, pointers stored into Java long types can make that value negative. As such, we should be comparing against 0 (NULL) for native failure instead of <= 0.

@JacobBarthelmeh JacobBarthelmeh merged commit 193361e into wolfSSL:master Feb 23, 2022
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.

2 participants