Skip to content

Commit

Permalink
Fix main
Browse files Browse the repository at this point in the history
  • Loading branch information
Miou-zora committed Apr 25, 2024
1 parent f0f3c03 commit f0aab38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn get_pixel_color(x: usize, y: usize, scene: *Scene.Scene, height: u32, width:
}

fn calculate_image(pixels: []qoi.Color, scene: *Scene.Scene, height: u32, width: u32, allocator: std.mem.Allocator) !void {
var list_of_hits: []HitRecord = try allocator.alloc(HitRecord, scene.objects.items.len);
const list_of_hits: []HitRecord = try allocator.alloc(HitRecord, scene.objects.items.len);
defer allocator.free(list_of_hits);
for (0..height) |y| {
for (0..width) |x| {
Expand Down

0 comments on commit f0aab38

Please sign in to comment.