[DGD] A small patch and..

Raymond Jennings shentino at gmail.com
Mon Aug 12 07:52:29 CEST 2013


Is it time for the zombies to raise already?

Welcome back, and appreciate the patch you sent.



On Sun, Aug 11, 2013 at 3:11 PM, <bart at wotf.org> wrote:

> 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/
>
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>



More information about the DGD mailing list