summaryrefslogtreecommitdiff
path: root/ext/digest/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/digest.c')
-rw-r--r--ext/digest/digest.c2
1 files changed, 1 insertions, 1 deletions
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))) {