Skip to content

Commit

Permalink
fix error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mulle-nat committed Jan 30, 2024
1 parent 0d74dda commit 33c1327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mulle-indexedstorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static inline void
struct mulle_allocator *allocator;
void *index_1;

index_1 = (void *) (uintptr_t) index + 1;
index_1 = (void *) (uintptr_t) (index + 1);
assert( index < mulle_structarray_get_count( &alloc->_structs));
assert( mulle__pointerarray_find( &alloc->_freed, index_1) == mulle_not_found_e);

Expand All @@ -94,7 +94,7 @@ static inline void *
_mulle_indexedstorage_get( struct mulle_indexedstorage *alloc, unsigned int index)
{
assert( index < mulle_structarray_get_count( &alloc->_structs));
assert( mulle__pointerarray_find( &alloc->_freed, (void *) (uintptr_t) index + 1) == mulle_not_found_e);
assert( mulle__pointerarray_find( &alloc->_freed, (void *) (uintptr_t) (index + 1)) == mulle_not_found_e);

return( _mulle_structarray_get( &alloc->_structs, (unsigned int) index));
}
Expand Down

0 comments on commit 33c1327

Please sign in to comment.