Navigation Menu

Skip to content

Commit

Permalink
Pacify c++ compiler by casting value to proper enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Jan 31, 2011
1 parent 01bf2d8 commit 91d348b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hash.c
Expand Up @@ -685,7 +685,7 @@ Parrot_hash_thaw(PARROT_INTERP, ARGMOD(PMC *info))

/* special case for great speed */
if (key_type == Hash_key_type_STRING
&& entry_type == enum_hash_int) {
&& entry_type == (PARROT_DATA_TYPE)enum_hash_int) {
for (entry_index = 0; entry_index < num_entries; ++entry_index) {
STRING * const key = VTABLE_shift_string(interp, info);
const INTVAL i = VTABLE_shift_integer(interp, info);
Expand Down

0 comments on commit 91d348b

Please sign in to comment.