From 7b24ee7d1bf53332f597a23bf1479cc4f484f71d Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 30 Jul 2008 22:35:53 +0100 Subject: [PATCH] dmloader: Sign-compare warning fix. --- dlls/dmloader/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/dmloader/debug.c b/dlls/dmloader/debug.c index dbd812905f7..db85d76f350 100644 --- a/dlls/dmloader/debug.c +++ b/dlls/dmloader/debug.c @@ -433,7 +433,8 @@ const char *debugstr_dmreturn (DWORD code) { /* generic flag-dumping function */ static const char* debugstr_flags (DWORD flags, const flag_info* names, size_t num_names){ static char buffer[128] = "", *ptr = &buffer[0]; - unsigned int i, size = sizeof(buffer); + unsigned int i; + int size = sizeof(buffer); for (i=0; i < num_names; i++) { if ((flags & names[i].val)) {