[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile errors
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: compile errors
- From: "George M. Garner Jr." <ggarner_online@xxxxxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sat, 1 Apr 2017 12:00:37 -0400
- To: libssh@xxxxxxxxxx
When I compile libssh 7.5 with the VS2015 compiler I get the following two warnings:
fe25519.c(92):warning C4146: unary minus operator applied to unsigned type, result still unsigned
fe25519.c(145): warning C4146: unary minus operator applied to unsigned type, result still unsigned
The two lines of code are: m = -m; and mask = -mask;where both m and mask are defined as crypto_uint32. What is the intended result of apply a unary minus operator to the unsigned types?
m = (uint32_t) ( -(int32_t)m); Regards, George M. Garner Jr.
Re: compile errors | Aris Adamantiadis <aris@xxxxxxxxxxxx> |