diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-11 06:13:45 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-11 06:13:45 +0000 |
| commit | 635b84249349aacc4914646554649e4ed590052d (patch) | |
| tree | 53d747d275f4cf7ad8916899e961b842ea966f4c | |
| parent | 7dba8bcd19b8468987a7fe4fcd8743c5f834a33e (diff) | |
| download | ruby-635b84249349aacc4914646554649e4ed590052d.tar.gz ruby-635b84249349aacc4914646554649e4ed590052d.tar.xz ruby-635b84249349aacc4914646554649e4ed590052d.zip | |
* ruby.h (rb_string_value): add volatile to avoid compiler warning.
* string.c (rb_string_value): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | ruby.h | 2 | ||||
| -rw-r--r-- | string.c | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Fri May 11 15:09:52 2001 WATANABE Hirofumi <eban@ruby-lang.org> + + * ruby.h (rb_string_value): add volatile to avoid compiler warning. + + * string.c (rb_string_value): ditto. + Fri May 11 02:00:44 2001 Ryo HAYASAKA <ryoh@jaist.ac.jp> * bignum.c (bigdivrem): access boundary bug. @@ -186,7 +186,7 @@ void rb_check_type _((VALUE,int)); #define Check_Type(v,t) rb_check_type((VALUE)(v),t) VALUE rb_str_to_str _((VALUE)); -VALUE rb_string_value _((VALUE*)); +VALUE rb_string_value _((volatile VALUE*)); #define StringValue(v) if (TYPE(v) != T_STRING) rb_string_value(&(v)) void rb_check_safe_str _((VALUE)); @@ -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); } |
