summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 00:36:54 (GMT)
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 00:36:54 (GMT)
commit4d467a08650273f3e20dbc4dc78592a2237362a9 (patch)
tree821d252ade8e1942f20425e05a6708f0d8b5e57a /compar.c
parent1ca94a03074888fe3c2b725a82bbbe539c5fdd98 (diff)
* ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
protect temporary context object. [ruby-dev:27979] * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should be called before actual variable initialization. [ruby-dev:27986] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compar.c b/compar.c
index 234a860..80c4c70 100644
--- a/compar.c
+++ b/compar.c
@@ -53,7 +53,7 @@ cmp_eq(VALUE *a)
{
VALUE c = rb_funcall(a[0], cmp, 1, a[1]);
- if (NIL_P(c)) return Qnil;
+ if (NIL_P(c)) return Qfalse;
if (rb_cmpint(c, a[0], a[1]) == 0) return Qtrue;
return Qfalse;
}
@@ -61,7 +61,7 @@ cmp_eq(VALUE *a)
static VALUE
cmp_failed(void)
{
- return Qnil;
+ return Qfalse;
}
/*