Fix smaller syntax snafus

This commit is contained in:
LunaTheFoxgirl 2024-12-14 15:19:01 +01:00
parent 0e98192ce1
commit f9a36823a0

View file

@ -101,7 +101,7 @@ struct ObjcSelector
buf.writeByte(firstChar);
buf.writestring(id[1..$]);
return cast(const(char)*)buf[0..buf.length];
return (cast(const(char)*)buf)[0..buf.length];
}
extern (C++) static ObjcSelector* create(FuncDeclaration fdecl)
@ -146,7 +146,7 @@ struct ObjcSelector
}
// We add the last parameter afterwards.
buf.write(ftype.parameterList[i].ident.toString());
buf.write(ftype.parameterList[$-1].ident.toString());
}
Lcomplete: