File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -229,14 +229,16 @@ void check_options_expire(options_t *options)
229229{
230230 // Zoom level 31 is the technical limit because we use 32-bit integers for
231231 // the x and y index of a tile ID.
232- if (options->expire_tiles_zoom_min > 31 ) {
233- options->expire_tiles_zoom_min = 31 ;
232+ constexpr uint32_t ZOOM_MAX = 31 ;
233+
234+ if (options->expire_tiles_zoom_min > ZOOM_MAX) {
235+ options->expire_tiles_zoom_min = ZOOM_MAX;
234236 log_warn (" Minimum zoom level for tile expiry is too "
235237 " large and has been set to 31." );
236238 }
237239
238- if (options->expire_tiles_zoom > 31 ) {
239- options->expire_tiles_zoom = 31 ;
240+ if (options->expire_tiles_zoom > ZOOM_MAX ) {
241+ options->expire_tiles_zoom = ZOOM_MAX ;
240242 log_warn (" Maximum zoom level for tile expiry is too "
241243 " large and has been set to 31." );
242244 }
You can’t perform that action at this time.
0 commit comments