summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-11-06 14:18:52 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-11-06 14:18:52 +0100
commit618a4a5785e07b9663111d8d7f4b33c0f6be0c55 (patch)
treee272af080d977c61e16058e5cd680fb00b430dcf /src
parentd7cfc05cea2b28111c6100b30555b84ad4751873 (diff)
downloadqtlocation-mapboxgl-618a4a5785e07b9663111d8d7f4b33c0f6be0c55.tar.gz
add -Werror to os x as well
Diffstat (limited to 'src')
-rw-r--r--src/storage/response.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/response.cpp b/src/storage/response.cpp
index f1e1c35874..a08a6d31ce 100644
--- a/src/storage/response.cpp
+++ b/src/storage/response.cpp
@@ -6,10 +6,10 @@ namespace mbgl {
int64_t Response::parseCacheControl(const char *value) {
if (value) {
- uint64_t seconds = 0;
+ unsigned long long seconds = 0;
// TODO: cache-control may contain other information as well:
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
- if (std::sscanf(value, "max-age=%lu", &seconds) == 1) {
+ if (std::sscanf(value, "max-age=%llu", &seconds) == 1) {
return std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::system_clock::now().time_since_epoch()).count() +
seconds;