X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=osl_core.h;h=df32b60a875b4c4448f991823ab1e974d5a4f0c7;hp=8a575c685e9e698995d5f8b8c41cb704620812cb;hb=6d7dce7f277fc8606fb8d5ed6360660c13a218af;hpb=e7fdbaf015655af4eec7e4655b9306e1db862a40 diff --git a/osl_core.h b/osl_core.h index 8a575c6..df32b60 100644 --- a/osl_core.h +++ b/osl_core.h @@ -303,8 +303,8 @@ _static_inline_ int get_cell_index(const struct osl_table *t, uint32_t row_num, _static_inline_ void update_cell_index(char *row_index, struct osl_column *col, uint32_t map_size, uint32_t object_size) { - write_u32(row_index + col->index_offset, map_size - object_size - 1); - write_u32(row_index + col->index_offset + 4, object_size + 1); + write_u32(row_index + col->index_offset, map_size - object_size); + write_u32(row_index + col->index_offset + 4, object_size); } /**