diff --git a/source/command.zig b/source/command.zig index 800656c..ca8a754 100644 --- a/source/command.zig +++ b/source/command.zig @@ -358,7 +358,7 @@ pub fn CommandBuilder(comptime UserContext: type) type { fields = fields ++ &[_]StructField{.{ .name = param.name, .type = FieldType, - .default_value = default, + .default_value = @ptrCast(default), .is_comptime = false, .alignment = @alignOf(FieldType), }};