mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-26 11:52:25 +00:00
fix warning: result of the left shift is undefined because the left operand is negative (#91)
There is no functional difference between the old and new code, but we avoid complaints from code analysis tools such as clang-tidy
This commit is contained in:
@@ -399,8 +399,8 @@ register char *buff68k; /* pointer to BUFF */ \
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define BIND {register int byte = Get_BYTE_PCMAC1; \
|
#define BIND {register int byte = Get_BYTE_PCMAC1; \
|
||||||
register int n1; \
|
register unsigned n1; \
|
||||||
register int n2; \
|
register unsigned n2; \
|
||||||
register LispPTR *ppvar; \
|
register LispPTR *ppvar; \
|
||||||
register int i; \
|
register int i; \
|
||||||
n1 = byte >> 4; \
|
n1 = byte >> 4; \
|
||||||
@@ -413,8 +413,7 @@ register char *buff68k; /* pointer to BUFF */ \
|
|||||||
*--ppvar = TOPOFSTACK; \
|
*--ppvar = TOPOFSTACK; \
|
||||||
for(i=1; i<n2; i++) { *--ppvar = *(--CSTKPTRL); } \
|
for(i=1; i<n2; i++) { *--ppvar = *(--CSTKPTRL); } \
|
||||||
} \
|
} \
|
||||||
i = ~(n1 + n2); \
|
TOPOFSTACK = ((~(n1 + n2))<<16) | (Get_BYTE_PCMAC2<<1); \
|
||||||
TOPOFSTACK = (i<<16) | (Get_BYTE_PCMAC2<<1); \
|
|
||||||
nextop3; \
|
nextop3; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user