diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-10 19:35:13 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-10 19:35:13 +0000 |
commit | af122f0a2b36bef94b8fcf35fd41847751205d4b (patch) | |
tree | c47eb72bec9e1782d25595328b3e628141694001 /gcc/sbitmap.c | |
parent | cda3065616ea668523ac22e67b5c98c5f554667d (diff) | |
download | gcc-af122f0a2b36bef94b8fcf35fd41847751205d4b.tar.gz |
* sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
of sequence point problems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sbitmap.c')
-rw-r--r-- | gcc/sbitmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c index da27c3212b3..a6f710e0cc2 100644 --- a/gcc/sbitmap.c +++ b/gcc/sbitmap.c @@ -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; |