1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-26 08:43:40 +00:00

Note places where undefined behavior is detected by the UB sanitizer

Comments only, no functional changes.

	modified:   src/arith2.c
	modified:   src/arith3.c
	modified:   src/arith4.c
	modified:   src/xc.c
This commit is contained in:
Nick Briggs
2020-09-17 18:24:54 -07:00
parent 11690d0f9c
commit 2b02c15982
4 changed files with 8 additions and 1 deletions

View File

@@ -444,6 +444,7 @@ nextopcode:
case 021:
CASE021:
/* UB: left shift of negative value -4 */
BIND;
case 022:
CASE022:
@@ -901,6 +902,7 @@ nextopcode:
case 0261:
CASE261 : {
CHECK_INTERRUPT;
/* UB: left shift of negative value -1 */
PCMACL += (Get_SBYTE_PCMAC1 << 8) | Get_BYTE_PCMAC2;
nextop0;
}