sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential of sequence point problems.
* sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential of sequence point problems. From-SVN: r33064
This commit is contained in:
parent
96e1d96c91
commit
a4ff8d98ba
@ -1,3 +1,8 @@
|
||||
Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
|
||||
of sequence point problems.
|
||||
|
||||
2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
|
||||
|
@ -265,9 +265,8 @@ sbitmap_a_subset_b_p (a, b)
|
||||
unsigned int i;
|
||||
sbitmap_ptr ap, bp;
|
||||
|
||||
|
||||
for (ap = a->elms, bp = b->elms, i = 0; i < a->size; i++)
|
||||
if ((*ap++ | *bp++) != *bp)
|
||||
for (ap = a->elms, bp = b->elms, i = 0; i < a->size; i++, ap++, bp++)
|
||||
if ((*ap | *bp) != *bp)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user