Project

General

Profile

« Previous | Next » 

Revision ca86c3ab

Added by Eric Wong about 10 years ago

variable.c: remove casts for rb_class_ivar_set callers

Casting any arguments of rb_class_ivar_set to st_data_t is wrong
as the function does not take any st_data_t parameters anymore.
There's no functional change, as ID, VALUE, and st_data_t are
all the same type, but this reduces confusion and improves
maintainability for future type changes.

  • variable.c (find_class_path): remove cast for rb_class_ivar_set
    (rb_ivar_set): ditto
    (rb_cvar_set): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e