From 156e4091d384678f26d342bd3c65aa40c4c61f0a Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Mon, 25 Apr 2011 20:42:26 -0500 Subject: [PATCH] fixing constness of char*. Also consted a local --- src/datatypes.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/datatypes.c b/src/datatypes.c index d97dd8b28c..4086785f08 100644 --- a/src/datatypes.c +++ b/src/datatypes.c @@ -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"