mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
Fix smaller syntax snafus
This commit is contained in:
parent
0e98192ce1
commit
f9a36823a0
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue