aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJonathan Gray2006-01-29 03:44:13 +0000
committerJonathan Gray2006-01-29 03:44:13 +0000
commit38ae101bdecd04501ec6b7e3dea8b8a388d09c5a (patch)
tree88cb4a0136ca4b54d2665b14e6eb8b5123176539 /common
parent2e9bbb896dd863a1aa321d3a462b7b96e40370e6 (diff)
downloadscummvm-rg350-38ae101bdecd04501ec6b7e3dea8b8a388d09c5a.tar.gz
scummvm-rg350-38ae101bdecd04501ec6b7e3dea8b8a388d09c5a.tar.bz2
scummvm-rg350-38ae101bdecd04501ec6b7e3dea8b8a388d09c5a.zip
cyx's gcc 2.95 fix makes things compile with gcc 2.95 again.
svn-id: r20288
Diffstat (limited to 'common')
-rw-r--r--common/list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/list.h b/common/list.h
index 82e5f013a2..11a4967633 100644
--- a/common/list.h
+++ b/common/list.h
@@ -91,7 +91,11 @@ public:
}
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*());