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

@@ -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,