Skip to content

Commit

Permalink
fixing constness of char*. Also consted a local
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Apr 26, 2011
1 parent 99ff475 commit 156e409
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/datatypes.c
Expand Up @@ -84,10 +84,12 @@ STRING *
Parrot_dt_get_datatype_name(PARROT_INTERP, INTVAL type)
{
ASSERT_ARGS(Parrot_dt_get_datatype_name)
char *s;
const char *s;
STRING *str;
int is_ref = type & enum_type_ref_flag;
type &= ~enum_type_ref_flag;

const int is_ref = type & enum_type_ref_flag;

type &= ~enum_type_ref_flag;

s = (type < enum_first_type || type >= enum_last_type)
? "illegal"
Expand Down

0 comments on commit 156e409

Please sign in to comment.