Re: unary minus operator applied to unsigned type, result still unsigned?

2016-05-05 Thread Philip Oakley
minus operator applied to unsigned type, result still unsigned 1>..\sha1-lookup.c(316) : warning C4146: unary minus operator applied to unsigned type, result still unsigned the two lines of code are the same, and the message suggests a bad return value: #100: return -lo-1; #316: ret

Re: unary minus operator applied to unsigned type, result still unsigned?

2016-05-04 Thread Junio C Hamano
"Philip Oakley" <philipoak...@iee.org> writes: > I'm working on building Git on Visual Studio as part of the Git for Windows > capability. > > The MSVC compiler is reporting: > > 1>..\sha1-lookup.c(100) : warning C4146: unary minus operator applied to > u

unary minus operator applied to unsigned type, result still unsigned?

2016-05-04 Thread Philip Oakley
I'm working on building Git on Visual Studio as part of the Git for Windows capability. The MSVC compiler is reporting: 1>..\sha1-lookup.c(100) : warning C4146: unary minus operator applied to unsigned type, result still unsigned 1>..\sha1-lookup.c(316) : warning C4146: unary minus op