1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-02 23:01:25 +00:00

Use "t" modifier in printf formats when printing pointer differences.

Cast stack addresses to appropriate type when calling CHECK_BF and CHECK_FX.

	modified:   src/gccode.c
	modified:   src/llstk.c
This commit is contained in:
Nick Briggs
2020-08-11 17:31:34 -07:00
parent 34cde1a373
commit 055a9522f8
2 changed files with 20 additions and 17 deletions

View File

@@ -166,7 +166,7 @@ LispPTR map_code_pointers(LispPTR codeblock, short int casep) {
LONGEST_OPCODE) { /* len > biggest possible marks an unknown opcode */
char errtext[200];
sprintf(errtext,
"Unrecognized bytecode (0%o) at offset 0%o in code block x%x,x%x; continue to use "
"Unrecognized bytecode (0%o) at offset 0%to in code block x%x,x%x; continue to use "
"UFN length",
opnum, codeptr - (InstPtr)fnbase, (codeblock >> 16) & 0xFF, codeblock & 0xFFFF);
error(errtext);
@@ -274,7 +274,7 @@ int code_block_size(long unsigned int codeblock68k) {
LONGEST_OPCODE) { /* len > biggest possible marks an unknown opcode */
char errtext[200];
sprintf(errtext,
"Unrecognized bytecode (0%o) at offset 0%o in code block x%x,x%x; continue to use "
"Unrecognized bytecode (0%o) at offset 0%to in code block x%x,x%x; continue to use "
"UFN length",
opnum, codeptr - (InstPtr)fnbase, (int)((codeblock68k >> 16) & 0xFF), (int)(codeblock68k & 0xFFFF));
error(errtext);