forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
circular_deque: Fix erasing empty ranges.
Previously circular_deque's range erase function would DCHECK if the caller erased an empty range, because it would try to move the items on top of themselves to make room for nothing. This patch early exits in the erase-nothing case. Change-Id: I772d1fcfaf5a85b1c79656274e44eac960a9c6e1 Reviewed-on: https://chromium-review.googlesource.com/646529 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Brett Wilson <brettw@chromium.org> Cr-Commit-Position: refs/heads/master@{#499048}
- Loading branch information
Brett Wilson
authored and
Commit Bot
committed
Aug 31, 2017
1 parent
62ff2e0
commit ba08f5c
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters