mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-02 09:46:27 +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:
@@ -2,5 +2,5 @@
|
||||
#define MKCELLDEFS_H 1
|
||||
#include "lispemul.h" /* for LispPTR, DLword */
|
||||
LispPTR N_OP_createcell(LispPTR tos);
|
||||
DLword *createcell68k(unsigned int type);
|
||||
void *createcell68k(unsigned int type);
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user