diff options
| author | Tyge Løvset <[email protected]> | 2022-03-16 21:41:40 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-03-16 21:41:40 +0100 |
| commit | 0468971b404cee5582d360d7d1c66bb4148e1614 (patch) | |
| tree | 9161ccbea490a5dab70e641f7bd568521a5da636 /include/stc/cbox.h | |
| parent | 342484f70998258022c26e6af2926ecc7635bbdd (diff) | |
| download | STC-modified-0468971b404cee5582d360d7d1c66bb4148e1614.tar.gz STC-modified-0468971b404cee5582d360d7d1c66bb4148e1614.zip | |
Bugfix: carc and cbox cmp functions had bug.
Renamed: i_key_sptr / i_val_sptr to i_key_arcbox / i_val_arcbox.
Other smaller updates.
Diffstat (limited to 'include/stc/cbox.h')
| -rw-r--r-- | include/stc/cbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cbox.h b/include/stc/cbox.h index 41d8f654..7b1cf377 100644 --- a/include/stc/cbox.h +++ b/include/stc/cbox.h @@ -163,7 +163,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
}
@@ -173,7 +173,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
}
|
