mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Don't cast pointers to integers before comparison
This commit is contained in:
parent
6e47c6b295
commit
a1c1dd3b80
@ -10,14 +10,14 @@
|
|||||||
struct LegoPathActorSetCompare {
|
struct LegoPathActorSetCompare {
|
||||||
MxU32 operator()(const LegoPathActor* p_lhs, const LegoPathActor* p_rhs) const
|
MxU32 operator()(const LegoPathActor* p_lhs, const LegoPathActor* p_rhs) const
|
||||||
{
|
{
|
||||||
return (MxS32) p_lhs < (MxS32) p_rhs;
|
return (MxS32*) p_lhs < (MxS32*) p_rhs;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LegoAnimPresenterSetCompare {
|
struct LegoAnimPresenterSetCompare {
|
||||||
MxBool operator()(const LegoAnimPresenter* p_lhs, const LegoAnimPresenter* p_rhs) const
|
MxBool operator()(const LegoAnimPresenter* p_lhs, const LegoAnimPresenter* p_rhs) const
|
||||||
{
|
{
|
||||||
return (MxS32) p_lhs < (MxS32) p_rhs;
|
return (MxS32*) p_lhs < (MxS32*) p_rhs;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ struct LegoPathCtrlEdge : public LegoUnknown100db7f4 {};
|
|||||||
struct LegoPathCtrlEdgeCompare {
|
struct LegoPathCtrlEdgeCompare {
|
||||||
MxU32 operator()(const LegoPathCtrlEdge* p_lhs, const LegoPathCtrlEdge* p_rhs) const
|
MxU32 operator()(const LegoPathCtrlEdge* p_lhs, const LegoPathCtrlEdge* p_rhs) const
|
||||||
{
|
{
|
||||||
return (MxS32) p_lhs < (MxS32) p_rhs;
|
return (MxS32*) p_lhs < (MxS32*) p_rhs;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ class LegoPathBoundary;
|
|||||||
class LegoHideAnimPresenter;
|
class LegoHideAnimPresenter;
|
||||||
|
|
||||||
struct CoreSetCompare {
|
struct CoreSetCompare {
|
||||||
MxS32 operator()(MxCore* const& p_a, MxCore* const& p_b) const { return (MxS32) p_a < (MxS32) p_b; }
|
MxS32 operator()(MxCore* const& p_a, MxCore* const& p_b) const { return (MxS32*) p_a < (MxS32*) p_b; }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef set<MxCore*, CoreSetCompare> MxCoreSet;
|
typedef set<MxCore*, CoreSetCompare> MxCoreSet;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user