diff options
| author | Nay <dnpd.dd@gmail.com> | 2012-09-03 16:11:46 +0100 | 
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2012-09-03 16:11:46 +0100 | 
| commit | 874ddcb0aede1fb8a3d8077bc11f08203e80b6ba (patch) | |
| tree | 78ec500df7858b45ed4c64d05ef135eaffa400f2 /dep/g3dlite/include/G3D/Table.h | |
| parent | dba602ea1617c42c95fa9703d53f4af0a2b3f35d (diff) | |
| parent | 0db5573d4de436cf14c9f6d113a28800fa278c2c (diff) | |
Merge remote-tracking branch 'origin/master' into 4.3.4
Conflicts:
	dep/PackageList.txt
	src/tools/map_extractor/System.cpp
Diffstat (limited to 'dep/g3dlite/include/G3D/Table.h')
| -rw-r--r-- | dep/g3dlite/include/G3D/Table.h | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/dep/g3dlite/include/G3D/Table.h b/dep/g3dlite/include/G3D/Table.h index 896a5a2a08a..ab0b114b1c4 100644 --- a/dep/g3dlite/include/G3D/Table.h +++ b/dep/g3dlite/include/G3D/Table.h @@ -86,12 +86,11 @@ namespace G3D {    <PRE>      template<> struct HashTrait<MyEnum> { -        static size_t equals(const MyEnum& key) const { return reinterpret_cast<size_t>( key ); } +        static size_t hashCode(const MyEnum& key) const { return reinterpret_cast<size_t>( key ); }      };    </PRE> -  And rely on the default enum operator==. - +  and rely on the default enum operator==.    Periodically check that debugGetLoad() is low (> 0.1).  When it gets near    1.0 your hash function is badly designed and maps too many inputs to  | 
