[Issue 10931] New: Missed `const` on argument types in etc.c.zlib

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 30 12:54:12 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10931

           Summary: Missed `const` on argument types in etc.c.zlib
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: temtaime at gmail.com


--- Comment #0 from Temtaime <temtaime at gmail.com> 2013-08-30 12:54:11 PDT ---
All the source data should be declared as const, for example:

int compress(ubyte* dest,
             size_t* destLen,
             ubyte* source,
             size_t sourceLen);

Should be:

int compress(ubyte* dest,
             size_t* destLen,
             const(ubyte)* source,
             size_t sourceLen);

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


More information about the Digitalmars-d-bugs mailing list