From c64475b0a462bc379afedf98ba64054c26aec8ad Mon Sep 17 00:00:00 2001 From: ookami125 Date: Thu, 10 Apr 2025 00:51:03 -0400 Subject: [PATCH] changes needed for 0.14.0 --- src/spacetime.zig | 4 ++-- src/spacetime/types.zig | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/spacetime.zig b/src/spacetime.zig index 37340ae..4b64bf8 100644 --- a/src/spacetime.zig +++ b/src/spacetime.zig @@ -803,7 +803,7 @@ pub export fn __call_reducer__( comptime var argList: []const std.builtin.Type.StructField = &[_]std.builtin.Type.StructField{ std.builtin.Type.StructField{ .alignment = @alignOf(*ReducerContext), - .default_value = null, + .default_value_ptr = null, .is_comptime = false, .name = "0", .type = *ReducerContext, @@ -815,7 +815,7 @@ pub export fn __call_reducer__( argList = argList ++ &[_]std.builtin.Type.StructField{ std.builtin.Type.StructField{ .alignment = @alignOf(param.type.?), - .default_value = null, + .default_value_ptr = null, .is_comptime = false, .name = comptime utils.itoa(argCount), .type = param.type.?, diff --git a/src/spacetime/types.zig b/src/spacetime/types.zig index fb6a785..ba4a775 100644 --- a/src/spacetime/types.zig +++ b/src/spacetime/types.zig @@ -285,9 +285,9 @@ pub fn UnionDeserializer(union_type: type) fn(allocator: std.mem.Allocator, *[]c }.deserialize; } -pub fn StructDeserializer(struct_type: type) fn(allocator: std.mem.Allocator, *[]const u8) std.mem.Allocator.Error!*struct_type { +pub fn StructDeserializer(struct_type: type) fn(allocator: std.mem.Allocator, *[]u8) std.mem.Allocator.Error!*struct_type { return struct { - pub fn deserialize(allocator: std.mem.Allocator, data: *[]const u8) std.mem.Allocator.Error!*struct_type { + pub fn deserialize(allocator: std.mem.Allocator, data: *[]u8) std.mem.Allocator.Error!*struct_type { const ret = try allocator.create(struct_type); var offset_mem = data.*; const fields = std.meta.fields(struct_type); @@ -402,7 +402,7 @@ pub fn Column2ORM(comptime table_name: []const u8, comptime column_name: [:0]con .fields = &.{ std.builtin.Type.StructField{ .alignment = @alignOf(column_type), - .default_value = null, + .default_value_ptr = null, .is_comptime = false, .name = column_name, .type = column_type,