diff --git a/ghc/compiler/nativeGen/StixPrim.lhs b/ghc/compiler/nativeGen/StixPrim.lhs index 11b6cd684736384d95b02fce862f3821869576e7..c9323ec415951a47917f17da2390c2bc0823be65 100644 --- a/ghc/compiler/nativeGen/StixPrim.lhs +++ b/ghc/compiler/nativeGen/StixPrim.lhs @@ -352,7 +352,7 @@ amodeToStix (CCharLike (CLit (MachChar c))) amodeToStix (CCharLike x) = StIndex PtrRep charLike off where - off = StPrim IntMulOp [amodeToStix x, StInt (toInteger (fixedHdrSize+1))] + off = StPrim IntMulOp [amodeToStix x, StInt (toInteger charLikeSize)] amodeToStix (CIntLike (CLit (MachInt i _))) = StLitLbl ((<>) (ptext SLIT("INTLIKE_closure+")) (int off))