aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index b760301137..0706318361 100644
--- a/string.c
+++ b/string.c
@@ -141,7 +141,7 @@ rb_str_to_str(str)
VALUE
rb_string_value(ptr)
- VALUE *ptr;
+ volatile VALUE *ptr;
{
return *ptr = rb_str_to_str(*ptr);
}