modified to address type incompatability on line 1503
application/octet-stream
48165
Comments
Comment #0 by edwards.ac — 2013-12-22T04:51:47Z
Created attachment 1303
modified to address type incompatability on line 1503
create_dmd_release.d(1503): Error: function core.sys.posix.sys.stat.chmod
(const(char*), ushort) is not callable using argument types (immutable(char)*,
uint)
Line 1503: setFileAttributes(toStringz(path), am.fileAttributes);
The following works:
setFileAttributes(toStringz(path), to!ushort(am.fileAttributes));
Whether that's the correct fix or not I'm not sure.
Comment #1 by doob — 2013-12-27T07:41:51Z
If you change the signature to "const(char)*", does that work? This is not a regression create_dmd_release is a new tool.