Index: util/numeric/safe_assignment.h |
diff --git a/util/numeric/safe_assignment.h b/util/numeric/safe_assignment.h |
index 05e0b2d9cfd2e2bf8476b8a5996a84284e9296c5..358d983701585b654c69c0b6d5851bc7bf15ed2c 100644 |
--- a/util/numeric/safe_assignment.h |
+++ b/util/numeric/safe_assignment.h |
@@ -35,7 +35,7 @@ bool AssignIfInRange(Destination* destination, Source source) { |
return false; |
} |
- *destination = source; |
+ *destination = static_cast<Destination>(source); |
return true; |
} |