diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-08-27 07:26:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-08-27 07:26:55 -0700 |
commit | 5e59559f324c25581984f47bb341f3ebbafa9329 (patch) | |
tree | a9d6edc9d4ffdccf7e74f4bea610c3f3a333079f | |
parent | 502299dafb9307345bfb455f52997e1c9be6f12c (diff) | |
download | txr-5e59559f324c25581984f47bb341f3ebbafa9329.tar.gz txr-5e59559f324c25581984f47bb341f3ebbafa9329.tar.bz2 txr-5e59559f324c25581984f47bb341f3ebbafa9329.zip |
OOP: bugfix: lazy object uninitialized dirty flag.
* struct.c (make_lazy_struct): Initialize dirty flag to 1,
as required by the documentation, since all newly instantiated
objects are dirty.
-rw-r--r-- | struct.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -898,6 +898,7 @@ val make_lazy_struct(val type, val argfun) si->type = st; si->id = st->id; si->lazy = 1; + si->dirty = 1; sinst = cobj(coerce(mem_t *, si), st->name, &struct_inst_ops); |