mirror of https://github.com/axmolengine/axmol.git
fixed a bug that was causing x86_64 tests to crash while loading
ccbuilder files
This commit is contained in:
parent
fc806d0496
commit
493d1d90ed
|
@ -233,7 +233,7 @@ void CCDictionary::setObject(CCObject* pObject, const std::string& key)
|
|||
}
|
||||
}
|
||||
|
||||
void CCDictionary::setObject(CCObject* pObject, int key)
|
||||
void CCDictionary::setObject(CCObject* pObject, long key)
|
||||
{
|
||||
CCAssert(pObject != NULL, "Invalid Argument!");
|
||||
if (m_eDictType == kCCDictUnknown)
|
||||
|
@ -294,7 +294,7 @@ void CCDictionary::setObjectUnSafe(CCObject* pObject, const std::string& key)
|
|||
HASH_ADD_STR(m_pElements, m_szKey, pElement);
|
||||
}
|
||||
|
||||
void CCDictionary::setObjectUnSafe(CCObject* pObject, const int key)
|
||||
void CCDictionary::setObjectUnSafe(CCObject* pObject, const long key)
|
||||
{
|
||||
pObject->retain();
|
||||
CCDictElement* pElement = new CCDictElement(key, pObject);
|
||||
|
|
|
@ -275,7 +275,7 @@ public:
|
|||
* @param key The string key for searching.
|
||||
* @see setObject(CCObject*, const std::string&)
|
||||
*/
|
||||
void setObject(CCObject* pObject, int key);
|
||||
void setObject(CCObject* pObject, long key);
|
||||
|
||||
/**
|
||||
* Remove an object by the specified string key.
|
||||
|
@ -380,7 +380,7 @@ private:
|
|||
* For internal usage, invoked by setObject.
|
||||
*/
|
||||
void setObjectUnSafe(CCObject* pObject, const std::string& key);
|
||||
void setObjectUnSafe(CCObject* pObject, const int key);
|
||||
void setObjectUnSafe(CCObject* pObject, const long key);
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue