Skip to content

Commit a0137fb

Browse files
committed
plusplus: do code more transparent
1 parent 83a8b83 commit a0137fb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

bld/plusplus/c/type.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8838,6 +8838,7 @@ static void pchWriteArgLists( type_pch_walk *data )
88388838
{
88398839
unsigned count;
88408840
unsigned i;
8841+
unsigned j;
88418842
unsigned except_spec_count;
88428843
TYPE *head;
88438844
TYPE curr;
@@ -8874,7 +8875,6 @@ static void pchWriteArgLists( type_pch_walk *data )
88748875
} RingIterEnd( curr )
88758876
head = &fnHashTable[0][0];
88768877
for( i = 0; i < ARGS_HASH; ++i ) {
8877-
int j;
88788878
for( j = 0; j < TYPE_HASH_MODULUS; ++j ) {
88798879
RingIterBeg( *head, curr ) {
88808880
*p = curr->u.f.args;
@@ -8910,8 +8910,8 @@ static void pchWriteArgLists( type_pch_walk *data )
89108910
}
89118911
}
89128912
PCHWriteUInt( count );
8913-
for( p = table; p < &table[count]; ++p ) {
8914-
args = *p;
8913+
for( i = 0; i < count; ++i ) {
8914+
args = table[i];
89158915
save_except_spec = args->except_spec;
89168916
except_spec_count = 0;
89178917
if( save_except_spec != NULL ) {
@@ -8921,8 +8921,8 @@ static void pchWriteArgLists( type_pch_walk *data )
89218921
}
89228922
args->except_spec = PCHSetUInt( except_spec_count );
89238923
PCHWrite( args, offsetof( arg_list, type_list ) );
8924-
for( i = 0; i < args->num_args; ++i ) {
8925-
TypePCHWrite( args->type_list[i] );
8924+
for( j = 0; j < args->num_args; ++j ) {
8925+
TypePCHWrite( args->type_list[j] );
89268926
}
89278927
if( save_except_spec != NULL ) {
89288928
for( etype = save_except_spec; *etype != NULL; ++etype ) {

0 commit comments

Comments
 (0)