projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* sdcc.spec: updated
[fw/sdcc]
/
src
/
mcs51
/
gen.c
diff --git
a/src/mcs51/gen.c
b/src/mcs51/gen.c
index 61732fcac962ba60630025fdba314b124b4383f3..649c643e5ea6f50e6b464777b546b4369137ce52 100644
(file)
--- a/
src/mcs51/gen.c
+++ b/
src/mcs51/gen.c
@@
-7198,7
+7198,7
@@
static void
genRightShift (iCode * ic)
{
operand *right, *left, *result;
genRightShift (iCode * ic)
{
operand *right, *left, *result;
- sym_link *
r
etype;
+ sym_link *
l
etype;
int size, offset;
char *l;
symbol *tlbl, *tlbl1;
int size, offset;
char *l;
symbol *tlbl, *tlbl1;
@@
-7207,9
+7207,9
@@
genRightShift (iCode * ic)
/* if signed then we do it the hard way preserve the
sign bit moving it inwards */
/* if signed then we do it the hard way preserve the
sign bit moving it inwards */
-
retype = getSpec (operandType (IC_RESUL
T (ic)));
+
letype = getSpec (operandType (IC_LEF
T (ic)));
- if (!SPEC_USIGN (
r
etype))
+ if (!SPEC_USIGN (
l
etype))
{
genSignedRightShift (ic);
return;
{
genSignedRightShift (ic);
return;