From 3a0f79267e5a424904146fe95b678b6581512373 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 5 Sep 2002 02:11:41 +0000 Subject: = should be == git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/digest/digest.c b/ext/digest/digest.c index e86188886e..a431984750 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -148,7 +148,7 @@ rb_digest_base_become(copy, obj) algo_t *algo; void *pctx1, *pctx2; - if (copy = obj) return copy; + if (copy == obj) return copy; rb_check_frozen(copy); algo = get_digest_base_metadata(CLASS_OF(copy)); if (algo != get_digest_base_metadata(CLASS_OF(obj))) { -- cgit v1.2.3