Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(950)

Side by Side Diff: chrome_elf/dll_hash/dll_hash.cc

Issue 1537333002: Switch to standard integer types in chrome_elf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome_elf/chrome_elf_util.cc ('k') | chrome_elf/elf_imports_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h>
6
5 #include "base/hash.h" 7 #include "base/hash.h"
6 #include "chrome_elf/dll_hash/dll_hash.h" 8 #include "chrome_elf/dll_hash/dll_hash.h"
7 9
8 int DllNameToHash(const std::string& dll_name) { 10 int DllNameToHash(const std::string& dll_name) {
9 uint32 data = base::Hash(dll_name); 11 uint32_t data = base::Hash(dll_name);
10 12
11 // Strip off the signed bit because UMA doesn't support negative values, 13 // Strip off the signed bit because UMA doesn't support negative values,
12 // but takes a signed int as input. 14 // but takes a signed int as input.
13 return static_cast<int>(data & 0x7fffffff); 15 return static_cast<int>(data & 0x7fffffff);
14 } 16 }
OLDNEW
« no previous file with comments | « chrome_elf/chrome_elf_util.cc ('k') | chrome_elf/elf_imports_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698