[commit] r1284 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Apr 26 09:24:08 CDT 2011


Author: ksmyth
Date: Tue Apr 26 09:24:08 2011
New Revision: 1284

Log:
Fix CComBSTR hashing

Modified:
   trunk/GME/Mga/MgaFCO.h

Modified: trunk/GME/Mga/MgaFCO.h
==============================================================================
--- trunk/GME/Mga/MgaFCO.h	Tue Apr 26 09:22:22 2011	(r1283)
+++ trunk/GME/Mga/MgaFCO.h	Tue Apr 26 09:24:08 2011	(r1284)
@@ -666,9 +666,9 @@
 {
 	size_t operator()(const CComBSTR &p_ob) const
 	{
-		OLECHAR c = 0;
+		size_t c = 0;
 		for(unsigned int i = 0; i < p_ob.Length(); i+= 3) c += p_ob[i];
-		return c % 5;	
+		return c;
 	}
 	bool operator()(const CComBSTR &p_ob1, const CComBSTR &p_ob2) const
 	{
@@ -680,7 +680,7 @@
 {
 	size_t operator()(const metaref_type &p_ob) const
 	{
-		return p_ob % 5;
+		return p_ob;
 	}
 	bool operator()(const metaref_type &p_ob1, const metaref_type &p_ob2) const
 	{


More information about the gme-commit mailing list