1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-28 04:38:00 +00:00

Address alignment warnings for createcell68k()

createcell68k(typecode) returns a pointer that is aligned for the typecode
argument.  Changing the return type to "void *" puts the onus on the caller
to cast the result to an appropriately aligned object.  All current uses
in the maiko source ask for 4-byte objects (TYPE_FIXP, TYPE_FLOATP).
This commit is contained in:
Nick Briggs
2023-01-02 11:48:52 -08:00
parent 9bfeaeb8b4
commit 7eb3cd0ceb
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ retry:
} /* N_OP_createcell end */
DLword *createcell68k(unsigned int type) {
void *createcell68k(unsigned int type) {
struct dtd *dtd68k;
DLword *ptr, *lastptr;
LispPTR newcell;