Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Build fix
Browse files Browse the repository at this point in the history
Fix no viable conversion on OSX.
  • Loading branch information
tmpsantos committed Feb 26, 2016
1 parent c8b7066 commit f683b10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/util/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern const double MAX_ZOOM;

extern const uint64_t DEFAULT_MAX_CACHE_SIZE;

extern const Duration CLOCK_SKEW_RETRY_TIMEOUT;
extern const SystemDuration CLOCK_SKEW_RETRY_TIMEOUT;

} // namespace util

Expand Down
2 changes: 1 addition & 1 deletion platform/default/online_file_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ SystemTimePoint interpolateExpiration(const SystemTimePoint& current,
// Assume that either the client or server clock is wrong and
// try to interpolate a valid expiration date (from the client POV)
// observing a minimum timeout.
return now + std::max<Duration>(delta, util::CLOCK_SKEW_RETRY_TIMEOUT);
return now + std::max<SystemDuration>(delta, util::CLOCK_SKEW_RETRY_TIMEOUT);
}

void OnlineFileRequestImpl::schedule(OnlineFileSource::Impl& impl, optional<SystemTimePoint> expires) {
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/util/constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const double MAX_ZOOM = 25.5;

const uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024;

const Duration CLOCK_SKEW_RETRY_TIMEOUT = Seconds(30);
const SystemDuration CLOCK_SKEW_RETRY_TIMEOUT = Seconds(30);

} // namespace util

Expand Down

0 comments on commit f683b10

Please sign in to comment.