]> git.codecow.com Git - Monocypher.git/commit
Worked around Microsoft compiler warning
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 16 Apr 2020 17:52:50 +0000 (19:52 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 16 Apr 2020 17:52:50 +0000 (19:52 +0200)
commit2628471a1991b619b9f34b515ffab43781b7f25b
tree1fef89eceb713fb335a44bc40e104a0dd37257ea
parent76b7a544a79921c0a68f906d3432ca5ae4b1040a
Worked around Microsoft compiler warning

Fixes #169

MSVC issues a warning when we try to negate an unsigned number.  The goal
however was to perform bit twiddling, so I used bitwise negation.
Hopefully the compiler will not complain about overflow, which is
perfectly well defined on unsigned numbers.
src/monocypher.c