MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / CheckedUint64ToInt64

Function CheckedUint64ToInt64

internal/overflow.cc:327–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327absl::StatusOr<int64_t> CheckedUint64ToInt64(uint64_t v) {
328 CEL_RETURN_IF_ERROR(
329 CheckRange(v <= kUintToIntMax, "uint64 out of int64 range"));
330 return static_cast<int64_t>(v);
331}
332
333absl::StatusOr<uint32_t> CheckedUint64ToUint32(uint64_t v) {
334 CEL_RETURN_IF_ERROR(

Callers 2

overflow_test.ccFile · 0.85

Calls 1

CheckRangeFunction · 0.85

Tested by

no test coverage detected