Bug 11799 – Incompatible argument types in create_dmd_release

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
installer
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2013-12-22T04:51:00Z
Last change time
2014-02-04T14:17:51Z
Keywords
pull
Assigned to
nobody
Creator
edwards.ac

Attachments

IDFilenameSummaryContent-TypeSize
1303create_dmd_release.dmodified to address type incompatability on line 1503application/octet-stream48165

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.
Comment #2 by code — 2013-12-29T11:31:29Z
Comment #3 by github-bugzilla — 2014-01-13T14:53:10Z
Commits pushed to master at https://github.com/D-Programming-Language/installer https://github.com/D-Programming-Language/installer/commit/113df7987e2d1b1cb252cd38be677a9b8148c63f fix Issue 11799 - Incompatible argument types in create_dmd_release - use std.file.setAttributes https://github.com/D-Programming-Language/installer/commit/848b0b65e20e1c5e32fb8ba6caeac332084fb981 Merge pull request #33 from MartinNowak/fix11799 [2.065] fix Issue 11799 - Incompatible argument types in create_dmd_release