dmstyle: Sign-compare warning fix

Andrew Talbot andrew.talbot at talbotville.com
Thu Jul 31 16:26:18 CDT 2008


Changelog:
    dmstyle: Sign-compare warning fix.

diff --git a/dlls/dmstyle/dmutils.c b/dlls/dmstyle/dmutils.c
index ce3de46..0ba0210 100644
--- a/dlls/dmstyle/dmutils.c
+++ b/dlls/dmstyle/dmutils.c
@@ -628,8 +628,9 @@ const char *debugstr_dmreturn (DWORD code) {
 /* generic flag-dumping function */
 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)) {
 			int cnt = snprintf(ptr, size, "%s ", names[i].name);



More information about the wine-patches mailing list