From f8e677d30ab03638bded98546c3e9555531b14cc Mon Sep 17 00:00:00 2001 From: Jiri Malak <malak.jiri@gmail.com> Date: Wed, 12 Jun 2024 10:48:46 +0200 Subject: [PATCH] cc: fix bug in LoadBitField lost high 32-bit for 64-bit bit field --- bld/cc/c/cdinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bld/cc/c/cdinit.c b/bld/cc/c/cdinit.c index 2244521689..7475869398 100644 --- a/bld/cc/c/cdinit.c +++ b/bld/cc/c/cdinit.c @@ -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 {