From 5f98d2ed5cd9eeea1eef683a1926b0082362b498 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Mon, 25 Apr 2016 10:26:51 +0200 Subject: [PATCH] Fixed the calculation of the size of data for OBI_STR and OBI_SEQ columns --- src/obitypes.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/obitypes.c b/src/obitypes.c index 3a3e04b..15d1c62 100644 --- a/src/obitypes.c +++ b/src/obitypes.c @@ -40,8 +40,12 @@ size_t obi_sizeof(OBIType_t type) case OBI_CHAR: size = sizeof(obichar_t); break; - case OBI_STR: // fallthrough - case OBI_SEQ: // fallthrough + case OBI_STR: size = sizeof(index_t); + break; + + case OBI_SEQ: size = sizeof(index_t); + break; + case OBI_IDX: size = sizeof(index_t); break;