In message <[EMAIL PROTECTED]>
          Simon Glover <[EMAIL PROTECTED]> wrote:

>  This one happens because entry is a HASH_ENTRY*, but get_pmc_keyed is
>  expecting a PMC*. However, by this point in the function, we've already
>  verified that entry is actually a PMC*, so it should be safe to add a
>  cast, as in the patch below. This shuts the warning up, and all tests
>  still pass.

I don't thnik that works. A HASH_ENTRY is not a PMC. I think you
want pass entry->val.pmc if you want the PMC stored in the hash.

> --- classes/perlhash.pmc.old  Wed Oct  9 15:59:29 2002
> +++ classes/perlhash.pmc      Wed Oct  9 15:59:41 2002
> @@ -189,7 +189,7 @@ pmclass PerlHash {
>           if (!nextkey)
>              return entry->val.pmc_val;
>           return entry->val.pmc_val->vtable->get_pmc_keyed(INTERP,
> -                 entry, nextkey);
> +                 (PMC*)entry, nextkey);
> 
>          }
>          internal_exception(OUT_OF_BOUNDS,


-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/

Reply via email to