Commit 61aac4a0 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dmstyle: Sign-compare warning fix.

parent e273bf1f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment