[DGD] A small patch and..
bart at wotf.org
bart at wotf.org
Mon Aug 12 00:11:36 CEST 2013
As you probably noticed from a few updates to gurbalib and a small fix for dgd
recently, no, I'm not dead or such.. but many things have changed overhere.
Sorry for my very long absence, and many thanks to Dworkin for taking back the
dgd project.
In the last few weeks, I've been fiddling a bit with lpc code, in part because
wotf will be reaching 5 years virtual uptime within the next 2 weeks and I
want to restart the world with a number of changes and on a recent copy of the
driver, and because sirdude dropped me a mail a while ago, and I started
collecting some of the things for Gurbalib that I still had lying around.
As part of that I took a look at the new closures extension, and noticed a bug
with assigning builtin types to an array element.
Here is a patch to fix this problem.
Bart.
diff --git a/src/interpret.c b/src/interpret.c
index 7f166eb..492c23b 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -856,7 +856,7 @@ void i_index2(frame *f, value *aval, value *ival, value
*val, bool keep)
case T_LWOBJECT:
ival = d_get_elts(val->u.array);
- if (DESTRUCTED(ival)) {
+ if (ival->type == T_OBJECT && DESTRUCTED(ival)) {
*val = nil_value;
break;
}
--
http://www.flickr.com/photos/mrobjective/
http://www.om-d.org/
More information about the DGD
mailing list