Chromium Code Reviews| Index: base/debug/crash_logging.cc |
| diff --git a/base/debug/crash_logging.cc b/base/debug/crash_logging.cc |
| index caf10b49b07185dfcf26eeb9b6fcdbe471f21151..2001a7869223e8d3f85f8eee7907ccf783568294 100644 |
| --- a/base/debug/crash_logging.cc |
| +++ b/base/debug/crash_logging.cc |
| @@ -36,7 +36,7 @@ ClearCrashKeyValueFuncT g_clear_key_func_ = NULL; |
| // For a given |length|, computes the number of chunks a value of that size |
| // will occupy. |
| size_t NumChunksForLength(size_t length) { |
| - return std::ceil(length / static_cast<float>(g_chunk_max_length_)); |
|
brettw
2014/10/01 17:54:06
I felt like the intent of the old code was clearer
Peter Kasting
2014/10/01 19:30:21
We can cast the result, but if something is unclea
|
| + return (length + g_chunk_max_length_ - 1) / g_chunk_max_length_; |
| } |
| // The longest max_length allowed by the system. |