diff --git a/pcbnew/drc/drc_test_provider_connection_width.cpp b/pcbnew/drc/drc_test_provider_connection_width.cpp index 96acde4b0c..332ea8e1f7 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; - long min_dist = std::numeric_limits::max(); + int64_t min_dist = std::numeric_limits::max(); Vertex* retval = nullptr; while( p && p->z <= maxZ )