b***@public.gmane.org
2010-09-26 17:27:54 UTC
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-+ciCUjOJn3Ednm+***@public.gmane.org
ReportedBy: guillaume.duhamel-***@public.gmane.org
CC: dev-l-***@public.gmane.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.
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-+ciCUjOJn3Ednm+***@public.gmane.org
ReportedBy: guillaume.duhamel-***@public.gmane.org
CC: dev-l-***@public.gmane.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.
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.