Andrew Talbot : dmstyle: Sign-compare warning fix.

Alexandre Julliard julliard at winehq.org
Fri Aug 1 05:33:44 CDT 2008


Module: wine
Branch: master
Commit: 61aac4a0fda661ad04e50c69140b91cc23d79376
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=61aac4a0fda661ad04e50c69140b91cc23d79376

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Thu Jul 31 22:26:18 2008 +0100

dmstyle: Sign-compare warning fix.

---

 dlls/dmstyle/dmutils.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/dmstyle/dmutils.c b/dlls/dmstyle/dmutils.c
index ce3de46..7f6d37f 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-cvs mailing list