MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / isInt64

Method isInt64

AgentBench.old/src/tasks/card_game/logic/src/jsoncpp/jsoncpp.cpp:3833–3851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3831}
3832
3833bool Value::isInt64() const {
3834#if defined(JSON_HAS_INT64)
3835 switch (type_) {
3836 case intValue:
3837 return true;
3838 case uintValue:
3839 return value_.uint_ <= UInt64(maxInt64);
3840 case realValue:
3841 // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
3842 // double, so double(maxInt64) will be rounded up to 2^63. Therefore we
3843 // require the value to be strictly less than the limit.
3844 return value_.real_ >= double(minInt64) &&
3845 value_.real_ < double(maxInt64) && IsIntegral(value_.real_);
3846 default:
3847 break;
3848 }
3849#endif // JSON_HAS_INT64
3850 return false;
3851}
3852
3853bool Value::isUInt64() const {
3854#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.70

Tested by

no test coverage detected