Skip to content

Commit

Permalink
#124 fix issue in table sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed May 21, 2022
1 parent 992aeae commit a2d2fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ void check_table_sanity(ecs_table_t *table) {
ecs_assert(table->data.columns != NULL, ECS_INTERNAL_ERROR, NULL);

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

ecs_vector_assert_size(column->data, ti->size);
Expand Down
2 changes: 1 addition & 1 deletion src/table.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void check_table_sanity(ecs_table_t *table) {
ecs_assert(table->data.columns != NULL, ECS_INTERNAL_ERROR, NULL);

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

ecs_vector_assert_size(column->data, ti->size);
Expand Down

0 comments on commit a2d2fee

Please sign in to comment.