Skip to content

Commit aca76d0

Browse files
committed
silence type cast warnings
1 parent d0a4a9b commit aca76d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vm/parrot/ops/nqp.ops

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ extern char **environ;
337337
#include <windows.h>
338338
#include <process.h>
339339
static char * pack_env_hash(Parrot_Interp interp, PMC* hash_pmc) {
340-
Hash *hash = VTABLE_get_pointer(interp, hash_pmc);
340+
Hash *hash = (Hash *)VTABLE_get_pointer(interp, hash_pmc);
341341
STRING *equal = Parrot_str_new_constant(interp, "=");
342342
STRING *key, *value, *env_var, *env_var_with_null;
343343
STRING *packed = Parrot_str_new_constant(interp, "");
@@ -592,11 +592,11 @@ static INTVAL Run_OS_Command(PARROT_INTERP, STRING *command, PMC *env_hash)
592592
#include <sys/wait.h>
593593

594594
static char ** pack_env_hash(Parrot_Interp interp, PMC* hash_pmc) {
595-
Hash *hash = VTABLE_get_pointer(interp, hash_pmc);
595+
Hash *hash = (Hash *)VTABLE_get_pointer(interp, hash_pmc);
596596
STRING *equal = Parrot_str_new_constant(interp, "=");
597597
STRING *key, *value, *env_var;
598598
INTVAL hash_size = Parrot_hash_size(interp, hash);
599-
char** packed = mem_sys_allocate_zeroed(sizeof(char*) * (hash_size+1));
599+
char** packed = (char **)mem_sys_allocate_zeroed(sizeof(char*) * (hash_size+1));
600600
INTVAL i = 0;
601601

602602

0 commit comments

Comments
 (0)