pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/knights Replace lvalue casts with proper dynamic...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a9153108efa
branches: trunk
changeset: 514965:8a9153108efa
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Jun 21 14:20:37 2006 +0000
description:
Replace lvalue casts with proper dynamic casts.
diffstat:
games/knights/distinfo | 3 ++-
games/knights/patches/patch-aa | 28 ++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r b79a268c632f -r 8a9153108efa games/knights/distinfo
--- a/games/knights/distinfo Wed Jun 21 14:13:27 2006 +0000
+++ b/games/knights/distinfo Wed Jun 21 14:20:37 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 23:11:59 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/06/21 14:20:37 joerg Exp $
SHA1 (knights-0.6.tar.gz) = 54cbed6c3e0ab9d62840ad75ed8e6cf874fa7f61
RMD160 (knights-0.6.tar.gz) = 3974312d834a63a7cfe53762346b64952763732c
Size (knights-0.6.tar.gz) = 1317589 bytes
+SHA1 (patch-aa) = fb48569f22c081254e48ced8634375a6e1769e41
diff -r b79a268c632f -r 8a9153108efa games/knights/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/knights/patches/patch-aa Wed Jun 21 14:20:37 2006 +0000
@@ -0,0 +1,28 @@
+$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;
Home |
Main Index |
Thread Index |
Old Index