Skip to content

Commit

Permalink
update alignCast to be inner
Browse files Browse the repository at this point in the history
  • Loading branch information
silbinarywolf committed May 28, 2024
1 parent de05ff9 commit b6c21af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psp/sdk/pspguimpl.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ pub fn sceGuClear(flags: c_int) void {
}

const count: i32 = @divTrunc(gu_draw_buffer.width + 63, 64) * 2;
const vertices: [*]Vertex = @as([*]Vertex, @alignCast(@ptrCast(sceGuGetMemory(@as(c_uint, @intCast(count)) * @sizeOf(Vertex)))));
const vertices: [*]Vertex = @ptrCast(@alignCast(sceGuGetMemory(@as(c_uint, @intCast(count)) * @sizeOf(Vertex))));

var i: usize = 0;
var curr: [*]Vertex = vertices;
Expand Down

0 comments on commit b6c21af

Please sign in to comment.