Skip to content

Fix bsdkm compile issue - #11493

Open
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:bsdkm-uint-compare
Open

padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:bsdkm-uint-compare

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Description

Found in the example repos nightly, the BSD KM build fails with this error dealing with signed/unsigned comparison:

wolfcrypt/src/rng_bank.c:1278:49: error: comparison of integers of different signs:
  'int' and 'unsigned int' [-Werror,-Wsign-compare]
 1278 |     if (WOLFSSL_ATOMIC_LOAD(bank->daemon_magic) != magic)

Fix is to do an unsigned compare via new macro WOLFSSL_ATOMIC_LOAD_UINT.

Testing

Not tested locally or in CI. Will observe result in examples nightly.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

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