[commit] r2086 - trunk/GME/ConstraintManager

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Oct 18 10:31:09 CDT 2012


Author: ksmyth
Date: Thu Oct 18 10:31:08 2012
New Revision: 2086

Log:
std::string::find returns size_t != int on x64

Modified:
   trunk/GME/ConstraintManager/GMEConstraintBrowserDialog.cpp

Modified: trunk/GME/ConstraintManager/GMEConstraintBrowserDialog.cpp
==============================================================================
--- trunk/GME/ConstraintManager/GMEConstraintBrowserDialog.cpp	Thu Oct 18 10:30:56 2012	(r2085)
+++ trunk/GME/ConstraintManager/GMEConstraintBrowserDialog.cpp	Thu Oct 18 10:31:08 2012	(r2086)
@@ -565,7 +565,7 @@
 			case Ocl::Constraint::CS_CHECK_FAILED : {
 				iImNumS = CSIMG_SEMANTIC_ERROR;
 				std::string strType = spConstraint->GetFullName();
-				int iPos = strType.rfind( ":" );
+				auto iPos = strType.rfind( ":" );
 				strType = strType.substr( 0, iPos - 1 );
 				try {
 					m_pFacade->GetTreeManager()->GetTypeManager()->GetType( strType, NILNAMESPACE );
@@ -964,7 +964,7 @@
 			strType = spConstraint->GetContextType();
 		else {
 			strType = spConstraint->GetFullName();
-			int iPos = strType.rfind( ":" );
+			auto iPos = strType.rfind( ":" );
 			strType = strType.substr( 0, iPos - 1 );
 		}
 


More information about the gme-commit mailing list