diff --git a/src/storage/response.cpp b/src/storage/response.cpp index d00d6d335..e3cc66e60 100644 --- a/src/storage/response.cpp +++ b/src/storage/response.cpp @@ -9,7 +9,7 @@ int64_t Response::parseCacheControl(const char *value) { uint64_t 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=%llu", static_cast(&seconds)) == 1) { + if (std::sscanf(value, "max-age=%llu", reinterpret_cast(&seconds)) == 1) { return std::chrono::duration_cast( std::chrono::system_clock::now().time_since_epoch()).count() + seconds;