Skip to content

Commit

Permalink
Update main.rs for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez authored Apr 12, 2024
1 parent 7fc915c commit b5092f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/aggregate-population/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ fn aggregate_band(dataset: Dataset, band_no: isize) -> errors::Result<(f64, f32)
unsafe {
data.set_len(pixels);
};

let raw_data = data.as_slice();
// End low-level, unsafe section of code

for iy in 0..span_y {
for ix in 0..span_x {
let value = raw_data[ix + iy * block_x_size];
Expand Down

0 comments on commit b5092f0

Please sign in to comment.