From a056136c4c9cff69098f41e2a389619968ae862f Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 21 Nov 2004 04:08:38 +0000 Subject: [PATCH] address compiler warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10078 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/input/InputServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/servers/input/InputServer.cpp b/src/servers/input/InputServer.cpp index 759079846b..c30263e50c 100644 --- a/src/servers/input/InputServer.cpp +++ b/src/servers/input/InputServer.cpp @@ -275,7 +275,7 @@ InputServer::LoadKeymap() if (!fChars) delete[] fChars; fChars = new char[fCharsSize]; - if (file.Read(fChars, fCharsSize) != fCharsSize) + if (file.Read(fChars, fCharsSize) != (signed)fCharsSize) return B_BAD_VALUE; return B_OK; @@ -1363,7 +1363,7 @@ InputServer::FilterEvents(BList *eventsToFilter) // void *out_item; for (int32 i = 0; NULL != (out_item = out_list.ItemAt(i) ); i++) - delete out_item; + delete (BMessage*)out_item; } else if (B_SKIP_MESSAGE == result) { // Use the result in out_list (if any); ignore current message. // @@ -1377,7 +1377,7 @@ InputServer::FilterEvents(BList *eventsToFilter) // void* out_item; for (int32 i = 0; NULL != (out_item = out_list.ItemAt(i) ); i++) - delete out_item; + delete (BMessage*)out_item; return false; }