diff --git a/pcbnew/drc/drc_test_provider_connection_width.cpp b/pcbnew/drc/drc_test_provider_connection_width.cpp index 332ea8e1f7..487d7a5639 100644 --- a/pcbnew/drc/drc_test_provider_connection_width.cpp +++ b/pcbnew/drc/drc_test_provider_connection_width.cpp @@ -478,7 +478,7 @@ private: // first look for points in increasing z-order Vertex* p = aPt->nextZ; - int64_t min_dist = std::numeric_limits::max(); + SEG::ecoord min_dist = std::numeric_limits::max(); Vertex* retval = nullptr; while( p && p->z <= maxZ )