OSDN Git Service

Ruby: IntGroup#== is modified so that it returns false if the argument is not an...
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Sat, 21 Sep 2013 13:21:27 +0000 (13:21 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Sat, 21 Sep 2013 13:21:27 +0000 (13:21 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@391 a2be9bc6-48de-4e38-9406-05402d4bc13c

MolLib/Ruby_bind/ruby_types.c

index f31fe9a..d011470 100644 (file)
@@ -2510,7 +2510,7 @@ s_IntGroup_Equal(VALUE self, VALUE val)
        IntGroup *ig1, *ig2;
        Data_Get_Struct(self, IntGroup, ig1);
        if (!rb_obj_is_kind_of(val, rb_cIntGroup))
-               val = s_IntGroup_Create(1, &val, rb_cIntGroup);
+               return Qfalse;
        Data_Get_Struct(val, IntGroup, ig2);
        if (IntGroupIsEqual(ig1, ig2))
                return Qtrue;