signed/unsigned comparison

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5027 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-04-01 17:38:31 +00:00
parent c3a8c6cc2e
commit 82d6166fdf
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ public:
for (int i = 0; i < kb; i++) {
int r = rand();
for (int j = 0; j < 1024/sizeof(int); j++) {
for (size_t j = 0; j < 1024/sizeof(int); j++) {
buf.add(&r, sizeof(int));
}
}

View file

@ -44,7 +44,7 @@ public:
char *p2 = (char *) mmap.getmore(offset2, size2);
int minsize = min(size1, size2);
for (size_t j = 0; j < minsize; j++) {
for (int j = 0; j < minsize; j++) {
CPPUNIT_ASSERT_EQUAL( p1[j], p2[j] );
}