Skip to content

Commit a2d2fee

Browse files
committed
#124 fix issue in table sanitizer
1 parent 992aeae commit a2d2fee

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

flecs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ void check_table_sanity(ecs_table_t *table) {
21772177
ecs_assert(table->data.columns != NULL, ECS_INTERNAL_ERROR, NULL);
21782178

21792179
for (i = 0; i < storage_count; i ++) {
2180-
ecs_type_info_t *ti = &table->type_info[i];
2180+
ecs_type_info_t *ti = table->type_info[i];
21812181
ecs_column_t *column = &table->data.columns[i];
21822182

21832183
ecs_vector_assert_size(column->data, ti->size);

src/table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void check_table_sanity(ecs_table_t *table) {
4848
ecs_assert(table->data.columns != NULL, ECS_INTERNAL_ERROR, NULL);
4949

5050
for (i = 0; i < storage_count; i ++) {
51-
ecs_type_info_t *ti = &table->type_info[i];
51+
ecs_type_info_t *ti = table->type_info[i];
5252
ecs_column_t *column = &table->data.columns[i];
5353

5454
ecs_vector_assert_size(column->data, ti->size);

0 commit comments

Comments
 (0)