mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-09 14:55:17 +00:00
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:
parent
02db69c85a
commit
3388d45082
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user