[Scummvm-cvs-logs] CVS: scummvm/common list.h,1.31,1.32

Jonathan Gray khalek at users.sourceforge.net
Sat Jan 28 19:45:01 CET 2006


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22634

Modified Files:
	list.h 
Log Message:
cyx's gcc 2.95 fix makes things compile with gcc 2.95 again.


Index: list.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/list.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- list.h	18 Jan 2006 17:39:34 -0000	1.31
+++ list.h	29 Jan 2006 03:44:13 -0000	1.32
@@ -91,7 +91,11 @@
 		}
 		T2& operator*() const {
 			assert(_node);
+#if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)
+			return static_cast<List<T>::Node<T2> *>(_node)->_data;
+#else
 			return static_cast<Node<T2>*>(_node)->_data;
+#endif
 		}
 		T2* operator->() const {
 			return &(operator*());





More information about the Scummvm-git-logs mailing list