28 lines
1.3 KiB
Text
28 lines
1.3 KiB
Text
$NetBSD: patch-aa,v 1.3 2006/06/21 14:20:37 joerg Exp $
|
|
|
|
--- knights/core.cpp.orig 2006-06-21 13:24:01.000000000 +0000
|
|
+++ knights/core.cpp
|
|
@@ -90,7 +90,7 @@ void core::createNewIO( int type, int ID
|
|
else
|
|
{
|
|
/* Use an existing internetIO */
|
|
- (io_base*)internetioPtr = myIOMap.find(Null);
|
|
+ internetioPtr = dynamic_cast<io_internet *>(myIOMap.find(Null));
|
|
if( internetioPtr == NULL )
|
|
{
|
|
kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl;
|
|
@@ -114,12 +114,12 @@ void core::createNewIO( int type, int ID
|
|
}
|
|
else
|
|
{
|
|
- (io_base*)internetioPtr = myIOMap.find(ID);
|
|
+ internetioPtr = dynamic_cast<io_internet *>(myIOMap.find(ID));
|
|
if( internetioPtr == NULL )
|
|
{
|
|
/* no io mapped to the ID yet, use the internetio */
|
|
/* Use an existing internetIO */
|
|
- (io_base*)internetioPtr = myIOMap.find(Null);
|
|
+ internetioPtr = dynamic_cast<io_internet *>(myIOMap.find(Null));
|
|
if( internetioPtr == NULL )
|
|
{
|
|
kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl;
|