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

Function CheckedInt64ToUint64

internal/overflow.cc:316–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316absl::StatusOr<uint64_t> CheckedInt64ToUint64(int64_t v) {
317 CEL_RETURN_IF_ERROR(CheckRange(v >= 0, "int64 out of uint64 range"));
318 return static_cast<uint64_t>(v);
319}
320
321absl::StatusOr<int32_t> CheckedInt64ToInt32(int64_t v) {
322 CEL_RETURN_IF_ERROR(

Callers 2

overflow_test.ccFile · 0.85

Calls 1

CheckRangeFunction · 0.85

Tested by

no test coverage detected