diff options
Diffstat (limited to 'include/stc/carc.h')
| -rw-r--r-- | include/stc/carc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h index e3deb376..7ea1eb8e 100644 --- a/include/stc/carc.h +++ b/include/stc/carc.h @@ -187,7 +187,7 @@ _cx_memb(_value_cmp)(const _cx_value* x, const _cx_value* y) { #if c_option(c_no_cmp)
return c_default_cmp(&x, &y);
#else
- _cx_raw rx = i_valto(x), ry = i_valto(x);
+ _cx_raw rx = i_valto(x), ry = i_valto(y);
return i_cmp(&rx, &ry);
#endif
}
@@ -197,7 +197,7 @@ _cx_memb(_value_eq)(const _cx_value* x, const _cx_value* y) { #if c_option(c_no_cmp)
return x == y;
#else
- _cx_raw rx = i_valto(x), ry = i_valto(x);
+ _cx_raw rx = i_valto(x), ry = i_valto(y);
return i_eq(&rx, &ry);
#endif
}
|
