[Issue 11799] New: Incompatible argument types in create_dmd_release

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 22 04:51:49 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11799

           Summary: Incompatible argument types in create_dmd_release
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: installer
        AssignedTo: nobody at puremagic.com
        ReportedBy: edwards.ac at gmail.com


--- Comment #0 from Andrew Edwards <edwards.ac at gmail.com> 2013-12-22 04:51:47 PST ---
Created an attachment (id=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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list