mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-14 15:36:34 +00:00
Resolve "warning: cast from 'DLword *' to 'LispPTR *' increases required alignment from 2 to 4"
by casting through (void *) since we know that the CurrentStackPTR is maintained with 4-byte aligned pointers. Resolve type error for user_subr argument.
This commit is contained in:
parent
6fdb54f2c8
commit
dadb754e56
@ -48,7 +48,7 @@ int OP_miscn(int misc_index, int arg_count) {
|
||||
/* Put the Args into a Vector */
|
||||
|
||||
args[0] = NIL_PTR;
|
||||
stk = ((LispPTR *)CurrentStackPTR) + 1;
|
||||
stk = ((LispPTR *)(void *)CurrentStackPTR) + 1;
|
||||
|
||||
{
|
||||
int arg_num = arg_count;
|
||||
@ -62,7 +62,7 @@ int OP_miscn(int misc_index, int arg_count) {
|
||||
|
||||
switch (misc_index) {
|
||||
case miscn_USER_SUBR: {
|
||||
LispPTR user_subr;
|
||||
int user_subr;
|
||||
N_GETNUMBER(args[0], user_subr, do_ufn);
|
||||
if ((result = UserSubr(user_subr, arg_count - 1, &args[1])) < 0) goto do_ufn;
|
||||
} break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user