build: fix Cygwin compiler warning

Cygwin compiler complains about comparison of signed and unsigned
integer on the ~0.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2017-11-13 10:15:36 -05:00
parent 02db69c85a
commit 3388d45082

View File

@ -434,7 +434,7 @@ void TPMLIB_LogPrintfA(unsigned int indent, const char *format, ...)
char spaces[20];
int fd;
if (indent != ~0) {
if (indent != (unsigned int)~0) {
if (!debug_fd || !debug_level)
return;
fd = debug_fd;