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

Function CheckedUint64ToUint32

internal/overflow.cc:333–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333absl::StatusOr<uint32_t> CheckedUint64ToUint32(uint64_t v) {
334 CEL_RETURN_IF_ERROR(
335 CheckRange(v <= kUint32Max, "uint64 out of uint32 range"));
336 return static_cast<uint32_t>(v);
337}
338
339} // namespace cel::internal

Callers 3

UInt32FromValueFunction · 0.85
AssignUInt32Method · 0.85
overflow_test.ccFile · 0.85

Calls 1

CheckRangeFunction · 0.85

Tested by

no test coverage detected