Rev 4583: Use a cast to improve compiler conformance. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Mon Aug 3 17:55:06 BST 2009
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 4583
revision-id: john at arbash-meinel.com-20090803165436-l7ps9z3y3oridzce
parent: pqm at pqm.ubuntu.com-20090803071511-dwb041qzak0vjzdk
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Mon 2009-08-03 11:54:36 -0500
message:
Use a cast to improve compiler conformance.
-------------- next part --------------
=== modified file 'bzrlib/diff-delta.c'
--- a/bzrlib/diff-delta.c 2009-04-09 20:23:07 +0000
+++ b/bzrlib/diff-delta.c 2009-08-03 16:54:36 +0000
@@ -713,7 +713,10 @@
prev_val = ~0;
data = buffer;
/* target size */
- get_delta_hdr_size(&data, top);
+ /* get_delta_hdr_size doesn't mutate the content, just moves the
+ * start-of-data pointer, so it is safe to do the cast.
+ */
+ get_delta_hdr_size((unsigned char**)&data, top);
entry = entries; /* start at the first slot */
num_entries = 0; /* calculate the real number of entries */
while (data < top) {
More information about the bazaar-commits
mailing list