summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cbox.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/cbox.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/cbox.h')
-rw-r--r--include/stc/cbox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stc/cbox.h b/include/stc/cbox.h
index 5eb1f1e3..41d8f654 100644
--- a/include/stc/cbox.h
+++ b/include/stc/cbox.h
@@ -121,7 +121,7 @@ _cx_memb(_reset_from)(_cx_self* self, i_val val) {
#if !c_option(c_no_clone)
#if !defined _i_no_raw
STC_INLINE _cx_self
- _cx_memb(_new)(i_valraw raw) {
+ _cx_memb(_new)(_cx_raw raw) {
return c_make(_cx_self){c_new(i_val, i_valfrom(raw))};
}
#endif
@@ -153,7 +153,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
}
@@ -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
- 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
}
@@ -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
- 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
}