summaryrefslogtreecommitdiffhomepage
path: root/include/stc/carc.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-13 15:45:28 +0100
committerTyge Løvset <[email protected]>2022-01-13 15:45:28 +0100
commit36c3ddf82fa47f2718b9782e1a7586f477c1a0db (patch)
treecf8529a89b36796a41589576662e24ca7c639fe6 /include/stc/carc.h
parent4a421181052483cef097746fcaaa9027aaf99a7d (diff)
downloadSTC-modified-36c3ddf82fa47f2718b9782e1a7586f477c1a0db.tar.gz
STC-modified-36c3ddf82fa47f2718b9782e1a7586f477c1a0db.zip
Fix a potential compilation bug in cbox/carc.
Diffstat (limited to 'include/stc/carc.h')
-rw-r--r--include/stc/carc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h
index ccb23a73..9c7d52c1 100644
--- a/include/stc/carc.h
+++ b/include/stc/carc.h
@@ -145,7 +145,7 @@ _cx_memb(_reset_from)(_cx_self* self, i_val val) {
}
#if !c_option(c_no_clone) && !defined _i_no_raw
- STC_INLINE _cx_self _cx_memb(_new)(i_valraw raw) {
+ STC_INLINE _cx_self _cx_memb(_new)(_cx_raw raw) {
return _cx_memb(_from)(i_valfrom(raw));
}
#endif
@@ -177,7 +177,7 @@ _cx_memb(_value_hash)(const _cx_value* x, size_t n) {
#elif c_option(c_no_cmp)
return c_hash32(&x, 4);
#else
- i_valraw rx = i_valto(x);
+ _cx_raw rx = i_valto(x);
return i_hash(&rx, sizeof rx);
#endif
}
@@ -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
- i_valraw rx = i_valto(x), ry = i_valto(x);
+ _cx_raw rx = i_valto(x), ry = i_valto(x);
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
- i_valraw rx = i_valto(x), ry = i_valto(x);
+ _cx_raw rx = i_valto(x), ry = i_valto(x);
return i_eq(&rx, &ry);
#endif
}