[Scummvm-cvs-logs] SF.net SVN: scummvm:[39174] scummvm/trunk/common/hashmap.h

sunmax at users.sourceforge.net sunmax at users.sourceforge.net
Sat Mar 7 06:01:56 CET 2009


Revision: 39174
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39174&view=rev
Author:   sunmax
Date:     2009-03-07 05:01:56 +0000 (Sat, 07 Mar 2009)

Log Message:
-----------
Modified HashMap ctr to skip _defaultVal() on PS2 to avoid gcc 3.2.2 ICE

Modified Paths:
--------------
    scummvm/trunk/common/hashmap.h

Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h	2009-03-07 04:58:29 UTC (rev 39173)
+++ scummvm/trunk/common/hashmap.h	2009-03-07 05:01:56 UTC (rev 39174)
@@ -262,8 +262,15 @@
  * Base constructor, creates an empty hashmap.
  */
 template<class Key, class Val, class HashFunc, class EqualFunc>
-HashMap<Key, Val, HashFunc, EqualFunc>::HashMap() :
-	_defaultVal() {
+HashMap<Key, Val, HashFunc, EqualFunc>::HashMap()
+//
+// We have to skip _defaultVal() on PS2 to avoid gcc 3.2.2 ICE
+//
+#ifdef __PLAYSTATION2__
+	{
+#else
+	: _defaultVal() {
+#endif
 	_mask = HASHMAP_MIN_CAPACITY - 1;
 	_storage = new Node *[HASHMAP_MIN_CAPACITY];
 	assert(_storage != NULL);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list