summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 49a4de9fac..c7ca180de1 100644
--- a/struct.c
+++ b/struct.c
@@ -451,7 +451,7 @@ inspect_struct(VALUE s, VALUE dummy, int recur)
for (i=0; i<RSTRUCT_LEN(s); i++) {
VALUE slot;
ID id;
- char *p;
+ const char *p;
if (i > 0) {
rb_str_cat2(str, ", ");