Skip to content

Commit

Permalink
cc: fix bug in LoadBitField lost high 32-bit for 64-bit bit field
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jun 12, 2024
1 parent d8424af commit f8e677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bld/cc/c/cdinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ static void LoadBitField( uint64 *val64 )
dqp = &CurDataQuad->next->dq;
if( dqp->type == QDT_CONSTANT )
return;
if( CurDataQuad->size == TARGET_LONG64 ) {
if( CurDataQuad->next->size == TARGET_LONG64 ) {
val64->u._32[I64LO32] = dqp->u.long64.u._32[I64LO32];
val64->u._32[I64HI32] = dqp->u.long64.u._32[I64HI32];
} else {
Expand Down

0 comments on commit f8e677d

Please sign in to comment.