From 788bc550964aa2f82e0349a5003156eb0368470c Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Fri, 4 Apr 2014 22:33:05 +0400 Subject: [PATCH] Fix a mistake in the lua resize() method of BitArray. --- library/include/DataIdentity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/include/DataIdentity.h b/library/include/DataIdentity.h index 0b88e0195..e684c6abd 100644 --- a/library/include/DataIdentity.h +++ b/library/include/DataIdentity.h @@ -390,7 +390,7 @@ namespace df } virtual bool resize(void *ptr, int size) { - ((container*)ptr)->resize(size*8); + ((container*)ptr)->resize((size+7)/8); return true; }