]> git.codecow.com Git - Monocypher.git/commit
Fixed MSVC warnings
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 20 Jul 2021 14:07:08 +0000 (16:07 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 20 Jul 2021 14:07:08 +0000 (16:07 +0200)
commit63be0d34eb58c7b2b22fe4351e27dd5e8643e1c9
tree0f27f45bdab5415e1b18eefe0db2f4ebda0216bb
parented7a3ea47dfd64962c37c513a9bc2d80bf647c53
Fixed MSVC warnings

Fixes #215

MSVC doesn't like when we expand unsigned integers after a bitwise
negation.  A fair distaste, except this time it's wrong. Writing
`(~x & 0xffffffff)` instead of just `~x` shows MSVC the error of its ways.

Also made a potentially lossy conversion to `int` explicit (and
explained in a comment why there is no actual loss).
src/monocypher.c