Fix type conversion error.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1624 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-02-12 18:47:01 +00:00
parent c2090fe967
commit 4b75a68f9b
1 changed files with 1 additions and 1 deletions

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;