~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/autorouter/autoplac.cpp

More int casts to rounding conversions

Show diffs side-by-side

added added

removed removed

Lines of Context:
942
942
        // the penalty is max for 45 degrees ratsnests,
943
943
        // and 0 for horizontal or vertical ratsnests.
944
944
        // For Horizontal and Vertical ratsnests, dy = 0;
945
 
        icout  = hypot( (double) dx, (double) dy * 2.0 );
946
 
        cout  += icout; /* Total cost = sum of costs of each connection. */
 
945
        icout  = hypot( dx, dy * 2.0 );
 
946
        cout  += icout; // Total cost = sum of costs of each connection
947
947
    }
948
948
 
949
949
    return cout;