Merge branch 'issue20'

This commit is contained in:
David Lamparter 2017-05-19 19:15:28 +02:00
commit aab56f1169
2 changed files with 6 additions and 2 deletions

View file

@ -898,7 +898,9 @@ int capn_set1(capn_list1 l, int off, int val) {
int capn_getv1(capn_list1 l, int off, uint8_t *data, int sz) {
/* Note we only support aligned reads */
int bsz;
capn_ptr p = l.p;
capn_ptr p;
capn_resolve(&l.p);
p = l.p;
if (p.type != CAPN_BIT_LIST || (off & 7) != 0)
return -1;