diff options
author | default <nobody@localhost> | 2024-05-27 05:49:29 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-27 05:49:29 +0200 |
commit | 36764b8ade5ee4686b04acb251f586eec4dacfad (patch) | |
tree | 573e5b170842522b6e79f21e61a5aa2a53e538b3 /xs.h | |
parent | 36969bcf6f4ed85a76ee3216051e9acb181d60dc (diff) |
Minor tweak to markdown-like links.
Diffstat (limited to 'xs.h')
-rw-r--r-- | xs.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -277,7 +277,7 @@ int _xs_get_size(const xs_val *ptr) /* must match _XS_TYPE_SIZE */ { int i; - memcpy(&i, ptr, sizeof(i)); + memcpy(&i, ptr + 1, sizeof(i)); return i; } @@ -299,7 +299,7 @@ int xs_size(const xs_val *data) case XSTYPE_LIST: case XSTYPE_DICT: case XSTYPE_DATA: - len = _xs_get_size(data + 1); + len = _xs_get_size(data); break; @@ -1286,7 +1286,7 @@ xs_data *xs_data_new(const void *data, int size) int xs_data_size(const xs_data *value) /* returns the size of the data stored inside value */ { - return _xs_get_size(value + 1) - (1 + _XS_TYPE_SIZE); + return _xs_get_size(value) - (1 + _XS_TYPE_SIZE); } |