diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-06 01:37:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-06 01:37:50 +0000 |
commit | bb117a260231e4f404cd75d7687b42510af436db (patch) | |
tree | 9bbf2d289c91cc38494fe0f5c71ff560c154987d /class.c | |
parent | 5f1ad081a90b24e80fcad3e1898f1f669dc16b29 (diff) | |
download | ruby-bb117a260231e4f404cd75d7687b42510af436db.tar.gz |
class.c: suppress a warning
* class.c (ins_methods_push): suppress a signed and unsigned
comparison warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1075,7 +1075,7 @@ ins_methods_push(ID name, long type, VALUE ary, rb_method_visibility_t visi) case METHOD_VISI_PRIVATE: case METHOD_VISI_PROTECTED: case METHOD_VISI_PUBLIC: - visi = (type == visi); + visi = (type == (long)visi); break; default: visi = (type != METHOD_VISI_PRIVATE); |