| 368 | } |
| 369 | |
| 370 | bool AssignUInt32(const CelValue& cel_value) const { |
| 371 | uint64_t value; |
| 372 | if (!cel_value.GetValue(&value)) { |
| 373 | return false; |
| 374 | } |
| 375 | if (!cel::internal::CheckedUint64ToUint32(value).ok()) { |
| 376 | return false; |
| 377 | } |
| 378 | static_cast<const Derived*>(this)->SetUInt32(value); |
| 379 | return true; |
| 380 | } |
| 381 | |
| 382 | bool AssignInt64(const CelValue& cel_value) const { |
| 383 | int64_t value; |
nothing calls this directly
no test coverage detected