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

Unified Diff: net/tools/flip_server/url_to_filename_encoder.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/flip_server/url_to_filename_encoder.h ('k') | net/tools/gdig/file_net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/url_to_filename_encoder.cc
diff --git a/net/tools/flip_server/url_to_filename_encoder.cc b/net/tools/flip_server/url_to_filename_encoder.cc
index bf75fff72fd6a1772639486c4a5c42a403c60ce9..b3d80e4b5a1e0227325be1a7498c343f37c099cc 100644
--- a/net/tools/flip_server/url_to_filename_encoder.cc
+++ b/net/tools/flip_server/url_to_filename_encoder.cc
@@ -21,9 +21,9 @@ namespace {
// A simple parser for long long values. Returns the parsed value if a
// valid integer is found; else returns deflt
// UInt64 and Int64 cannot handle decimal numbers with leading 0s.
-uint64 ParseLeadingHex64Value(const char* str, uint64 deflt) {
+uint64_t ParseLeadingHex64Value(const char* str, uint64_t deflt) {
char* error = NULL;
- const uint64 value = strtoull(str, &error, 16);
+ const uint64_t value = strtoull(str, &error, 16);
return (error == str) ? deflt : value;
}
@@ -196,7 +196,7 @@ bool UrlToFilenameEncoder::Decode(const string& encoded_filename,
case kFirstDigit:
if (base::IsHexDigit(ch)) {
hex_buffer[1] = ch;
- uint64 hex_value = ParseLeadingHex64Value(hex_buffer, 0);
+ uint64_t hex_value = ParseLeadingHex64Value(hex_buffer, 0);
decoded_url->append(1, static_cast<char>(hex_value));
state = kStart;
} else {
« no previous file with comments | « net/tools/flip_server/url_to_filename_encoder.h ('k') | net/tools/gdig/file_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698