mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 22:33:48 -07:00
umm: fix pointer arithmetic warning
This commit is contained in:
parent
3e297eba40
commit
d9d93a845e
1 changed files with 2 additions and 2 deletions
|
@ -300,7 +300,7 @@ static void umm_free_core( void *ptr ) {
|
|||
|
||||
/* Figure out which block we're in. Note the use of truncated division... */
|
||||
|
||||
c = (((void *)ptr)-(void *)(&(umm_heap[0])))/sizeof(umm_block);
|
||||
c = (((unsigned char *)ptr)-(unsigned char *)(&(umm_heap[0])))/sizeof(umm_block);
|
||||
|
||||
DBGLOG_DEBUG( "Freeing block %6i\n", c );
|
||||
|
||||
|
@ -563,7 +563,7 @@ void *umm_realloc( void *ptr, size_t size ) {
|
|||
|
||||
/* Figure out which block we're in. Note the use of truncated division... */
|
||||
|
||||
c = (((void *)ptr)-(void *)(&(umm_heap[0])))/sizeof(umm_block);
|
||||
c = (((unsigned char *)ptr)-(unsigned char *)(&(umm_heap[0])))/sizeof(umm_block);
|
||||
|
||||
/* Figure out how big this block is ... the free bit is not set :-) */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue