Ticket #1741: 0007-fix-warning-in-call-args.c.patch

File 0007-fix-warning-in-call-args.c.patch, 1.0 KB (added by luben, 11 years ago)
  • src/call/args.c

    From ca1fa829e416396f90a13c9c98517d907e26eced Mon Sep 17 00:00:00 2001
    From: luben <karavelov@spnet.net>
    Date: Mon, 16 Aug 2010 11:17:49 +0300
    Subject: [PATCH 7/7] fix warning in call/args.c
    
    ---
     src/call/args.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/call/args.c b/src/call/args.c
    index c87ea8f..7328e89 100644
    a b  
    491491        Hash * hash = (Hash *)VTABLE_get_pointer(interp, aggregate), key; 
    492492        parrot_hash_iterate(hash, 
    493493            PARROT_ASSERT(_bucket->key); 
    494             VTABLE_set_pmc_keyed_str(interp,call_object,_bucket->key, 
    495                 VTABLE_get_pmc_keyed_str(interp, aggregate, _bucket->key)); 
     494            VTABLE_set_pmc_keyed_str(interp,call_object, (STRING *)_bucket->key, 
     495                VTABLE_get_pmc_keyed_str(interp, aggregate, (STRING *)_bucket->key)); 
    496496        ); 
    497497    } 
    498498    else {