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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node_http.cc

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: native_client_sdk/src/libraries/nacl_io/mount_node_http.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_http.cc b/native_client_sdk/src/libraries/nacl_io/mount_node_http.cc
index d6355ad81b91696f545653779b095215a1b1ea95..5a65d413de36d04fe4e7078f97c6ee8ce48aa517 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node_http.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_http.cc
@@ -101,9 +101,9 @@ bool ParseContentRange(const StringMap_t& headers,
// The key should look like "bytes ##-##/##" or "bytes ##-##/*". The last
// value is the entity length, which can potentially be * (i.e. unknown).
- int read_start_int;
- int read_end_int;
- int entity_length_int;
+ size_t read_start_int;
+ size_t read_end_int;
+ size_t entity_length_int;
int result = sscanf(iter->second.c_str(),
"bytes %" SCNuS "-%" SCNuS "/%" SCNuS,
&read_start_int,

Powered by Google App Engine
This is Rietveld 408576698