}
#endif // _f_memory_USE_posix_memalign_
- // uint8_t * is of a data size of 1, casting it to uint8_t should result in a single-length increment.
- // This is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) *pointer), 0, length);
+ memset(*pointer, 0, length);
return F_none;
}
// uint8_t * is of a data size size of 1, casting it to uint8_t should result in a single-length increment.
// This is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) *pointer) + length_new, 0, type_size * (length_old - length_new));
+ memset((void *) (((uint8_t *) *pointer) + length_new), 0, type_size * (length_old - length_new));
}
}
// uint8_t * is of a data size size of 1, casting it to bool should result in a single-length increment.
// This is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) new_pointer) + (type_size * length_old), 0, type_size * (length_new - length_old));
+ memset((void *) (((uint8_t *) new_pointer) + (type_size * length_old)), 0, type_size * (length_new - length_old));
}
*pointer = new_pointer;
// uint8_t * is of a data size size of 1, casting it to bool should result in a single-length increment.
// This is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) new_pointer) + (type_size * length_old), 0, type_size * (length_new - length_old));
+ memset((void *) (((uint8_t *) new_pointer) + (type_size * length_old)), 0, type_size * (length_new - length_old));
}
*pointer = new_pointer;