[PATCH] mark unsigned entitities as unsigned
Marcus Meissner
marcus at jet.franken.de
Fri Mar 28 03:21:15 CDT 2008
Hi,
Coverity did not like my last fix fully, since
it thinks some variables can still be signed.
Adjust the variables to be unsigned ints.
Ciao, Marcus
---
dlls/user32/tests/resource.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/tests/resource.c b/dlls/user32/tests/resource.c
index 24ec995..a8b6c08 100644
--- a/dlls/user32/tests/resource.c
+++ b/dlls/user32/tests/resource.c
@@ -74,8 +74,8 @@ static void test_LoadStringA (void)
static const char str[] = "String resource"; /* same in resource.rc */
char buf[128];
struct string_test {
- int bufsiz;
- int expected;
+ unsigned int bufsiz;
+ unsigned int expected;
};
struct string_test tests[] = {{sizeof buf, sizeof str - 1},
{sizeof str, sizeof str - 1},
@@ -85,8 +85,8 @@ static void test_LoadStringA (void)
assert (sizeof str < sizeof buf);
for (i = 0; i < sizeof tests / sizeof tests[0]; i++) {
- const int bufsiz = tests[i].bufsiz;
- const int expected = tests[i].expected;
+ const unsigned int bufsiz = tests[i].bufsiz;
+ const unsigned int expected = tests[i].expected;
const int len = LoadStringA (hInst, 0, buf, bufsiz);
ok (len == expected, "bufsiz=%d: got %d, expected %d\n",
--
1.5.2.4
More information about the wine-patches
mailing list