1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

srfi-35 properly uses vtable-offset-user

* module/srfi/srfi-35.scm (condition-type-id):
  (condition-type-parent, condition-type-all-fields): Don't ref fixed
  struct indices, use vtable-offset-user instead.
This commit is contained in:
Andy Wingo 2009-11-03 22:27:34 +01:00
parent fb0f1a40e7
commit ceedcfaa0c

View file

@ -78,15 +78,15 @@
(define (condition-type-id ct)
(and (condition-type? ct)
(struct-ref ct 3)))
(struct-ref ct (+ vtable-offset-user 0))))
(define (condition-type-parent ct)
(and (condition-type? ct)
(struct-ref ct 4)))
(struct-ref ct (+ vtable-offset-user 1))))
(define (condition-type-all-fields ct)
(and (condition-type? ct)
(struct-ref ct 5)))
(struct-ref ct (+ vtable-offset-user 2))))
(define (struct-layout-for-condition field-names)