summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-13 05:41:25 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2007-10-13 05:41:25 (GMT)
commit36709576edf799400f3ade06a82cde86dec5da6a (patch)
tree5c73096cc51e593595a4743b8145d109471d8440
parentf997d209424b0a8a2ee865a2d459fc574f8316c0 (diff)
downloadpbn-36709576edf799400f3ade06a82cde86dec5da6a.zip
pbn-36709576edf799400f3ade06a82cde86dec5da6a.tar.gz
pbn-36709576edf799400f3ade06a82cde86dec5da6a.tar.bz2
pbn-36709576edf799400f3ade06a82cde86dec5da6a.tar.xz
Fix calculation of bits in pbn_xor()
-rw-r--r--pbn_xor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pbn_xor.c b/pbn_xor.c
index 7c03607..8f880ad 100644
--- a/pbn_xor.c
+++ b/pbn_xor.c
@@ -19,7 +19,7 @@
struct pbn *pbn_xor(struct pbn *s1, struct pbn *s2)
{
struct pbn *d;
- int i, len, bits, lx;
+ int i, len, lx;
if (s1->bits == 0) {
pbn_free(s1);
@@ -39,7 +39,6 @@ struct pbn *pbn_xor(struct pbn *s1, struct pbn *s2)
len = (s1->len > s2->len) ? s1->len : s2->len;
d = pbn_cow(s1, len);
- d->bits = bits; /* Guaranteed accurate */
lx = len;
if (s2->len < lx)
lx = s2->len;