www.digitalmars.com         C & C++   DMDScript  

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

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 puremagic.com
        ReportedBy: temtaime gmail.com


--- Comment #0 from Temtaime <temtaime 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: -------
Aug 30 2013