Update src/browser/webapi/animation/Animation.zig

Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
Pierre Tachoire
2026-02-19 10:35:46 +01:00
committed by GitHub
parent 1461d029db
commit 5248b9fc6f

View File

@@ -163,7 +163,7 @@ pub fn deinit(self: *Animation, _: bool) void {
} }
// callback function transitionning from a state to another // callback function transitionning from a state to another
fn update(ctx: *anyopaque) anyerror!?u32 { fn update(ctx: *anyopaque) !?u32 {
const self: *Animation = @ptrCast(@alignCast(ctx)); const self: *Animation = @ptrCast(@alignCast(ctx));
switch (self._playState) { switch (self._playState) {