Merge revision 1624 changes:

- Fix type conversion error.

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1625 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-02-12 18:47:50 +00:00
parent 29f5798752
commit 7e6ad6f823

View File

@ -49,7 +49,7 @@ class IdGenerator {
IdGenerator() : next_id_(kReservedId) {}
T GetNextId() {
int id = ++next_id_;
T id = ++next_id_;
if (id == kReservedId) // In case the integer value wraps.
id = ++next_id_;
return id;