mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-13 08:20:31 -07:00
clos: fix computation of instance size
For empty structs, the size was off by one. While this did not affect structs that were created directly with the structure constructor, for structs that were externalized with MAKE-LOAD-FORM-SAVING-SLOTS instances which were one element too large were created.
This commit is contained in:
parent
4831831f74
commit
a5cb93d311
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@
|
|||
|
||||
(defun compute-instance-size (slots)
|
||||
(loop for slotd in slots
|
||||
with last-location = 0
|
||||
with last-location = -1
|
||||
with num-slots = 0
|
||||
when (eq (slot-definition-allocation slotd) :instance)
|
||||
do (let ((new-loc (safe-slot-definition-location slotd)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue