MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __Compare

Method __Compare

src/Dynamic.cpp:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 int __ToInt() const HXCPP_OVERRIDE { return mValue; }
97
98 int __Compare(const hx::Object *inRHS) const HXCPP_OVERRIDE
99 {
100 double diff = (double)mValue - inRHS->__ToDouble();
101 return diff < 0 ? -1 : diff==0 ? 0 : 1;
102 }
103
104
105 bool mValue;

Callers

nothing calls this directly

Calls 1

__ToDoubleMethod · 0.45

Tested by

no test coverage detected