fix more stage2 build errors

This commit is contained in:
Mitchell Hashimoto
2022-10-14 10:01:41 -07:00
parent 83c9390ac9
commit 6c84199b84
3 changed files with 2 additions and 10 deletions

View File

@ -182,11 +182,3 @@ pub const WriteReq = struct {
test {
_ = WriteReq;
}
test "uv_buf_t and slices are the same" {
// Verify that the fields are also the same
var slice: []const u8 = &[_]u8{ 1, 2, 3 };
var buf = @bitCast(c.uv_buf_t, slice);
try testing.expectEqual(slice.ptr, buf.base);
try testing.expectEqual(slice.len, buf.len);
}

View File

@ -46,7 +46,7 @@ pub const NumberType = enum(c.CFNumberType) {
ns_integer = c.kCFNumberNSIntegerType,
cg_float = c.kCFNumberCGFloatType,
pub fn ValueType(self: NumberType) type {
pub fn ValueType(comptime self: NumberType) type {
return switch (self) {
.sint8 => i8,
.sint16 => i16,

View File

@ -85,7 +85,7 @@ pub const FontAttribute = enum {
}));
}
pub fn Value(self: FontAttribute) type {
pub fn Value(comptime self: FontAttribute) type {
return switch (self) {
.url => *foundation.URL,
.name => *foundation.String,