mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
fix more stage2 build errors
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user