Skip to content
Snippets Groups Projects
Unverified Commit 44d2b62a authored by Gaëtan Harter's avatar Gaëtan Harter Committed by cladmi
Browse files

tests/rng: fix cppcheck error shiftTooManyBitsSigned

cpp check is reporting the following error

    error (shiftTooManyBitsSigned):
    Shifting signed 32-bit value by 31 bits is undefined behaviour

Fix by ensuring the `1` is an `uint32_t` before shifting.
parent 643de0a8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment