diff options
| author | shtrophic <shtrophic@noreply.codeberg.org> | 2025-02-22 11:40:54 +0000 |
|---|---|---|
| committer | shtrophic <shtrophic@noreply.codeberg.org> | 2025-02-22 11:40:54 +0000 |
| commit | beb500360c32ee459201a087dbed57a447b1f0db (patch) | |
| tree | cde2f140812aa913bc8668fc2e0dad9ec1b2211c /xs.h | |
| parent | ff06e7e3e019f5f960bc6875d1f027e5e304ee4a (diff) | |
| parent | 07b343de70939327afefd2060a341a6ee555973b (diff) | |
Merge branch 'master' into curl-smtp
Diffstat (limited to 'xs.h')
| -rw-r--r-- | xs.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -398,6 +398,7 @@ xs_val *xs_dup(const xs_val *data) xs_val *xs_expand(xs_val *data, int offset, int size) /* opens a hole in data */ { + xstype type = xs_type(data); int sz = xs_size(data); int n; @@ -410,9 +411,9 @@ xs_val *xs_expand(xs_val *data, int offset, int size) for (n = sz - 1; n >= offset + size; n--) data[n] = data[n - size]; - if (xs_type(data) == XSTYPE_LIST || - xs_type(data) == XSTYPE_DICT || - xs_type(data) == XSTYPE_DATA) + if (type == XSTYPE_LIST || + type == XSTYPE_DICT || + type == XSTYPE_DATA) _xs_put_size(data, sz); return data; |