Fix type conversion error.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1624 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
c2090fe967
commit
4b75a68f9b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue