LoupVaillant / Monocypher

An easy to use, easy to deploy crypto library
https://monocypher.org
Other
614 stars 81 forks source link

MSVC 2017 compiler warnings W4 #112

Closed mireiner closed 5 years ago

mireiner commented 5 years ago

Hi there,

increasing MSVC 2017 compiler to warning level /W4 gives following warnings:

monocypher.c(153): warning C4244: 'Initialization': conversion from 'u32' to 'u8', possible loss of data monocypher.c(1275): warning C4244: 'Initialization': conversion from 'int' in 'u8', possible loss of data monocypher.c(1654): warning C4244: '=': conversion from 'int' to 'i8', possible loss of data monocypher.c(1867): warning C4244: "Initialization": conversion from 'int' in 'u8', possible loss of data monocypher.c(1725): warning C4456: Declaration of 'tmp' hides previous local declaration

The warnings issues may be cosmetic (for sure the last one). But you may like to know them anyway.

Best regards, mireiner

LoupVaillant commented 5 years ago

Thanks, I'll fix them right away.

LoupVaillant commented 5 years ago

There, done. Did it work?