http://bugs.openzim.org/show_bug.cgi?id=25
Summary: Broken post increment and decrement (patch included) Product: openZIM Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: zimlib AssignedTo: tommi@tntnet.org ReportedBy: guillaume.duhamel@gmail.com CC: dev-l@openzim.org Estimated Hours: 0.0
Created an attachment (id=8) --> (http://bugs.openzim.org/attachment.cgi?id=8) Patch to fix post inc / dec
The current post increment and decrement in fileiterator.h are just doing nothing: they copy "this" in a local object, increment/decrement the local copy and returns the unmodified "this".
Here's a patch that fixes the problem by incrementing/decrementing "this" and returning the local copy (which is the expected behavior).
The patch also fix the post decrement signature.
http://bugs.openzim.org/show_bug.cgi?id=25
Tommi Mäkitalo tommi@tntnet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #1 from Tommi Mäkitalo tommi@tntnet.org 2010-09-26 21:50:41 CET --- Thanks for reporting