@@ -110,24 +110,24 @@ e_create_move WeightedMedianMoveGenerator::propose_move(t_pl_blocks_to_be_moved&
110
110
limit_coords.xmin = place_move_ctx.X_coord [0 ];
111
111
limit_coords.xmax = limit_coords.xmin ;
112
112
} else {
113
- limit_coords.xmin = place_move_ctx.X_coord [floor ((place_move_ctx.X_coord .size () - 1 ) / 2 )];
114
- limit_coords.xmax = place_move_ctx.X_coord [floor ((place_move_ctx.X_coord .size () - 1 ) / 2 ) + 1 ];
113
+ limit_coords.xmin = place_move_ctx.X_coord [((place_move_ctx.X_coord .size () - 1 ) / 2 )];
114
+ limit_coords.xmax = place_move_ctx.X_coord [((place_move_ctx.X_coord .size () - 1 ) / 2 ) + 1 ];
115
115
}
116
116
117
117
if (place_move_ctx.Y_coord .size () == 1 ) {
118
118
limit_coords.ymin = place_move_ctx.Y_coord [0 ];
119
119
limit_coords.ymax = limit_coords.ymin ;
120
120
} else {
121
- limit_coords.ymin = place_move_ctx.Y_coord [floor ((place_move_ctx.Y_coord .size () - 1 ) / 2 )];
122
- limit_coords.ymax = place_move_ctx.Y_coord [floor ((place_move_ctx.Y_coord .size () - 1 ) / 2 ) + 1 ];
121
+ limit_coords.ymin = place_move_ctx.Y_coord [((place_move_ctx.Y_coord .size () - 1 ) / 2 )];
122
+ limit_coords.ymax = place_move_ctx.Y_coord [((place_move_ctx.Y_coord .size () - 1 ) / 2 ) + 1 ];
123
123
}
124
124
125
125
if (place_move_ctx.layer_coord .size () == 1 ) {
126
126
limit_coords.layer_min = place_move_ctx.layer_coord [0 ];
127
127
limit_coords.layer_max = limit_coords.layer_min ;
128
128
} else {
129
- limit_coords.layer_min = place_move_ctx.layer_coord [floor ((place_move_ctx.layer_coord .size () - 1 ) / 2 )];
130
- limit_coords.layer_max = place_move_ctx.layer_coord [floor ((place_move_ctx.layer_coord .size () - 1 ) / 2 ) + 1 ];
129
+ limit_coords.layer_min = place_move_ctx.layer_coord [((place_move_ctx.layer_coord .size () - 1 ) / 2 )];
130
+ limit_coords.layer_max = place_move_ctx.layer_coord [((place_move_ctx.layer_coord .size () - 1 ) / 2 ) + 1 ];
131
131
}
132
132
133
133
t_range_limiters range_limiters{rlim,
0 commit comments