Skip to content

Commit

Permalink
Fix build with the latest zig version
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Jan 18, 2025
1 parent ac82640 commit 1daaf52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/value_parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn getValueData(comptime T: type) ValueData {
.float => floatData(ValueType, T),
.bool => boolData(T),
.pointer => |pinfo| {
if (pinfo.size == .Slice and pinfo.child == u8) {
if (pinfo.size == .slice and pinfo.child == u8) {
return stringData(T);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/value_ref.zig
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn mkRef(dest: anytype) ValueRef {
switch (@typeInfo(t)) {
.pointer => |pinfo| {
switch (pinfo.size) {
.Slice => {
.slice => {
if (pinfo.child == u8) {
return .{
.dest = @ptrCast(dest),
Expand Down

0 comments on commit 1daaf52

Please sign in to comment.