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(a)tntnet.org
ReportedBy: guillaume.duhamel(a)gmail.com
CC: dev-l(a)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.
--
Configure bugmail:
http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.