Skip to content

Commit

Permalink
When checking misaligned designations, if we get to the end of desig1…
Browse files Browse the repository at this point in the history
… without a mismatch, it's a match.
  • Loading branch information
Bill-Gray committed Mar 10, 2024
1 parent a5544bb commit b2a074d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elem_out.cpp
Expand Up @@ -1577,6 +1577,8 @@ static int _compare_misaligned_packed_desigs( const char *desig1,
desig1++;
desig2++;
}
if( !*desig1 || *desig1 == ' ')
return( 0);
return( (int)*desig1 - (int)*desig2);
}

Expand Down

0 comments on commit b2a074d

Please sign in to comment.