Commit af4e8d8a authored by hshi@chromium.org's avatar hshi@chromium.org

Fix compile error on x86-generic (32-bit) PFQ bots.

For some reason the integer literal "1ULL" is still treated as 32-bit and we
encounter the error "left shift count >= width of type".

See x86-generic nightly chromium PFQ build #2727 for details.

BUG=none
TEST=trybot
R=satorux@chromium.org

Review URL: https://codereview.chromium.org/17175020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207976 0039d316-1c4b-4281-b951-d872f2087c98
parent c884e36e
...@@ -22,7 +22,7 @@ namespace { ...@@ -22,7 +22,7 @@ namespace {
std::string GetDeviceIdString(const chromeos::AudioDevice& device) { std::string GetDeviceIdString(const chromeos::AudioDevice& device) {
return device.display_name + " : " + return device.display_name + " : " +
base::Uint64ToString((device.id & ((1ULL << 32) - 1))); base::Uint64ToString(device.id & static_cast<uint64>(0xffffffff));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment