Skip to content

Commit 03aea4b

Browse files
committed
Fix copy data
1 parent 54a717f commit 03aea4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "dataframe.h"
1111

1212
const types_t TYPES[] = {
13-
{ "bool", sizeof(bool) },
13+
{ "bool", 0 },
1414
{ "int", sizeof(int) },
1515
{ "uint", sizeof(uint32_t) },
1616
{ "float", sizeof(float) },

src/copy_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ bool copy_data(dataframe_t *dst, dataframe_t *src, int nb_rows)
7070
return (free((void *)dst->data), false);
7171
#pragma GCC diagnostic pop
7272
}
73-
dst->nb_rows = row + 1;
73+
dst->nb_rows = row;
7474
return true;
7575
}

0 commit comments

Comments
 (0)