X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic16%2Fgen.c;fp=src%2Fpic16%2Fgen.c;h=461b8b2d27aa5113f15b541c4f1018a86a75118a;hb=a60bfaa1e7df0465a96195a619d6a398363347a9;hp=fa1d7a014660d3255e42ada3791a871ae15c8aa0;hpb=eae1bd2f705a2c61e143c539f8c4d1e9c2b4efe6;p=fw%2Fsdcc diff --git a/src/pic16/gen.c b/src/pic16/gen.c index fa1d7a01..461b8b2d 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -8199,7 +8199,7 @@ static void genNearPointerGet (operand *left, #if 1 if(IS_BITFIELD( retype ) - && (SPEC_BLEN(operandType(result))==1) + && (SPEC_BLEN(retype)==1) ) { iCode *nextic; pCodeOp *jop; @@ -8224,8 +8224,8 @@ static void genNearPointerGet (operand *left, /* everything is ok then */ /* find a way to optimize the genIfx iCode */ - bytestrt = SPEC_BSTR(operandType(result))/8; - bitstrt = SPEC_BSTR(operandType(result))%8; + bytestrt = SPEC_BSTR(retype)/8; + bitstrt = SPEC_BSTR(retype)%8; jop = pic16_popCopyGPR2Bit(pic16_popGet(AOP(left), 0), bitstrt);