address compiler warnings

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10146 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty
2004-11-22 02:45:00 +00:00
parent f23d8db821
commit 6e518ec4c2
3 changed files with 4 additions and 6 deletions
@@ -182,13 +182,13 @@ TestBTranslator(BTestCase *ptest, BTranslator *ptran,
int32 incount = 0;
const translation_format *pins = ptran->InputFormats(&incount);
CPPUNIT_ASSERT(incount == nExpectedIns);
CPPUNIT_ASSERT((unsigned)incount == nExpectedIns);
CPPUNIT_ASSERT(pins);
memset(matches, 0, sizeof(uint8) * nExpectedIns);
for (int32 i = 0; i < incount; i++) {
bool bmatch = false;
for (int32 k = 0; bmatch == false && k < nExpectedIns; k++) {
for (uint32 k = 0; bmatch == false && k < nExpectedIns; k++) {
bmatch = CompareTranslationFormat(pins + i, pExpectedIns + k);
if (bmatch)
matches[k] = 1;
@@ -209,13 +209,13 @@ TestBTranslator(BTestCase *ptest, BTranslator *ptran,
int32 outcount = 0;
const translation_format *pouts = ptran->OutputFormats(&outcount);
CPPUNIT_ASSERT(outcount == nExpectedOuts);
CPPUNIT_ASSERT((unsigned)outcount == nExpectedOuts);
CPPUNIT_ASSERT(pouts);
memset(matches, 0, sizeof(uint8) * nExpectedOuts);
for (int32 i = 0; i < outcount; i++) {
bool bmatch = false;
for (int32 k = 0; bmatch == false && k < nExpectedOuts; k++) {
for (uint32 k = 0; bmatch == false && k < nExpectedOuts; k++) {
bmatch = CompareTranslationFormat(pouts + i, pExpectedOuts + k);
if (bmatch)
matches[k] = 1;
@@ -1073,7 +1073,6 @@ BMPTranslatorTest::ConfigMessageTest()
{
// Init
NextSubTest();
status_t result = B_ERROR;
BTranslatorRoster *proster = new BTranslatorRoster();
CPPUNIT_ASSERT(proster);
CPPUNIT_ASSERT(proster->AddTranslators(
@@ -386,7 +386,6 @@ STXTTranslatorTest::ConfigMessageTest()
{
// Init
NextSubTest();
status_t result = B_ERROR;
BTranslatorRoster *proster = new BTranslatorRoster();
CPPUNIT_ASSERT(proster);
CPPUNIT_ASSERT(proster->AddTranslators(