Fixed the psp build breakage in r3595. Erwan, pls review - I think that the subtypesToType map probably should be unsigned ints instead of signed, but I wasn't about to sweep through the file right now.
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
|||||||
int find(string subtype, bool forceAdd = true);
|
int find(string subtype, bool forceAdd = true);
|
||||||
string find(unsigned int id);
|
string find(unsigned int id);
|
||||||
bool isSubtypeOfType(string subtype, string type);
|
bool isSubtypeOfType(string subtype, string type);
|
||||||
bool isSubtypeOfType(unsigned int subtype, unsigned int type);
|
bool isSubtypeOfType(int subtype, int type);
|
||||||
bool isSuperType(int type);
|
bool isSuperType(int type);
|
||||||
bool isType(int type);
|
bool isType(int type);
|
||||||
bool isSubType(int type);
|
bool isSubType(int type);
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ bool Subtypes::isSubtypeOfType(string subtype, string type)
|
|||||||
unsigned int typeInt = find(type);
|
unsigned int typeInt = find(type);
|
||||||
return isSubtypeOfType(subtypeInt, typeInt);
|
return isSubtypeOfType(subtypeInt, typeInt);
|
||||||
}
|
}
|
||||||
bool Subtypes::isSubtypeOfType(unsigned int subtype, unsigned int type)
|
bool Subtypes::isSubtypeOfType(int subtype, int type)
|
||||||
{
|
{
|
||||||
return (subtypesToType[subtype] == type);
|
return (subtypesToType[subtype] == type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user